BridgesUNCC / bridges-java

JAVA Client library for Bridges
http://bridgesuncc.github.io
GNU General Public License v2.0
4 stars 12 forks source link

To simplify the error message for setDataStructures() #62

Closed mmehedin closed 9 years ago

mmehedin commented 9 years ago

Complex (and confusing) error stacks are printed as a result of: -calling visualize() is called with no ADT -and/or set the ADT parameter for something different then: \"graph\", \"graphl\",\"stack\",\"queue\",\"tree\", \"llist\", \"AList\" or \"Dllist\"" -JSON is not formatted properly

Solution: I added a more explicit error message. I also included the error stack that contains the original and exact cause of the error. This is helpful during troubleshooting.