... THROW [RESUMABLE] cx_class( [p1 = a1 p2 =
a2 ...] )
Effect
If THROW is specified, an exception of the following
exception class cx_class is
raised in accordance with the rules of the statement
RAISE EXCEPTION . Here, the
input parameters p1 , p2 , ... of the instance constructor
can be filled with the actual parameters a1 , a2 .
Notes
If the exception class is specified after THROW , the parentheses
must always be specified, even if no actual parameters are passed.
EXPORTING cannot be specified, nor does it need to be.
Like the statement RAISE EXCEPTION
, THROW cannot be used in a method or function module in whose
interface non-class-based exceptions are
declared. Also, the statement does not permit simultaneous use of the
statement CATCHSYSTEM-EXCEPTIONS for the
obsolete handling of catchable
runtime errors , and the statements RAISE
or MESSAGE RAISING to raise
non-class-based exceptions in the current processing block.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved