Clear all

Extract exception message from a generated java class  



We used to have a exception class generation by a xml file.

For example - TOSX.LoadConsolidationSolverException is generated from a TransportationPlanning-exceptions.xml

Now we need to get a message by a error code. For example -

com.onenetwork.tosx.loadConsolidationSolverException.noCompatibleVehicles is for error code 37.

is there an easy way to do that?


1 Answer

There is at present no way to traverse "backward" from error code to exception class.  

This makes sense as an enhancement; if you will open a JIRA, we can potentially add in Neo 3.3.

© 2020 One Network Enterprises. All rights reserved. Privacy Policy