Skip to content

Exception Handling

Dave Nicolette edited this page Feb 10, 2021 · 7 revisions

Home -> Developer Guide ->

The general approach to exception handling is to abort the run if an error occurs that makes it impossible to continue. All exception messages are localized via the Messages class. See Internationalization for more information.

For errors that do not cause the run to halt, the standard is to throw and log, and catch at the appropriate level of abstraction.

An exception named PossibleInternalLogicErrorException is thrown in situations where code internal to Cobol Check attempts to invoke other Cobol Check code in a manner different from the design intent. The assumption is that a developer made a change to the logic that resulted in an illogical sequence of events internally. The code is complicated enough that we felt it useful to include this facility to help developers extricate themselves from unintended problems. End users should never see this exception. Its purpose is to help diagnose problems during development and testing.

Clone this wiki locally