Skip to main content

Software > Software Development > IBM REXX Family >

NetRexx

Technical detail

Exception classes

The classes provided for exceptions in the netrexx.lang package are all subclasses of java.lang.RuntimeException and all have the same content. Each has two constructors: one taking no argument and the other taking a string of type java.lang.String, which is used for additional detail describing the exception.

The Exceptions are signalled as follows.

BadArgumentException

signalled when an argument to a method is incorrect.

BadColumnException

signalled when a column number in a parsing template is not valid (for example, not a number).

BadNumericException

signalled when a numeric digits instruction tries to set a value that is not a whole number, or is not positive, or is more than nine digits.

DivideException

signalled when an error occurs during a division. This may be due to an attempt to divide by zero, or when the intermediate result of an integer divide or remainder operation is not valid.

ExponentOverflowException

signalled when the exponent resulting from an operation would require more than nine digits.

NoOtherwiseException

signalled when a select construct does not supply an otherwise clause and none of expressions on the when clauses resulted in '1'.

NotCharacterException

signalled when a conversion from a string to a single character was attempted but the string was not exactly one character long.

NotLogicException

signalled when a conversion from a string to a boolean was attempted but the string was neither the string '0' nor the string '1'.

Other exceptions, from the java.lang package, may also be signalled, for example NumberFormatException or NullPointerException.

Supplement to The NetRexx Language by Mike Cowlishaw, mfc@uk.ibm.com (ISBN 0-13-806332-X, 197pp, Prentice-Hall, 1997).

 

 

PreviousTable of contents Next
We're here to help
Easy ways to get the answers you need.
Request a quote
E-mail IBM

or call us at
877-426-3774
Priority code:
104CBW67