Error Handling: Exceptions
Example 3 demonstrates catching an SRM exception
- Application tries creating a TM direction
- Unfortunately SRM version 4.0.0 Alpha encounters an error in this example
- SRM API throws srm::Exception
- Application catches the exception, prints the description, and continues