iNTERFACEWARE Products Manual > Installing and Using Chameleon > Learning the Advanced Features > Validation > Exception Class |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Chameleon throws exceptions when a validation error occurs as an instance of the Chameleon exception in the language being used. Additionally, depending on the error code of the exception, it may contain name-value pairs, which provides additional information for the exception. A description is also given with an exception. However, the name-value pairs of the error may differ depending on the nature of the error. For instance, the Error Code 0x80002003 describes "One or more segments violated their defined segment grammar. Check the exploded message tree for the precise errors." but the detailed information (for example, is it a integer problem or date time problem?) depends on the name-value pairs. This gives you the ability to capture the exception and extract data from it without performing string parsing of the message.
|