Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is the way errors was handled in the Tiani solution. This code is a part from the epSOS-Web and how it handled the errorCodes from the tiani solution. The advantage with using Objects for this is that you can handle more then one exception which is the case for a CDA that can have many errors or partial errors. As its done now in the openNCP only one error is handled since its throwing an exception directly in the code. Another thing that was also contained in the object that tiani had was the actual exception offcourse.

...