CERN -> IPT Group -> FrameMaker at CERN
Information Service User's Guide

Chapter 3

Error Handling


T his chapter describes how catch and handle errors which can be reported by IS API.

IS error reporting strategy

The IS public API functions throw exceptions in case of errors. Each public function has a list of possible exceptions in its declaration. An application which is calling such function is responsible for surrounding the call by the try {...} catch {...} directives to catch all possible exceptions. All IS exceptions has common ancestor so a developer has a choice of handling each exception individually of using a single catch statement for one of the basic exceptions if all of the specific ones can be handled in the same way.

3.2 IS Exceptions hierarchy


2 July 1998 - WebMaster
Copyright © CERN 1998