ABAP Keyword Documentation → ABAP - Quick Reference
RAISE EXCEPTION - Quick reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
RAISE [RESUMABLE] EXCEPTION
{ { TYPE cx_class [MESSAGE tn(id)
| { ID mid TYPE mtype NUMBER num }
[WITH dobj1 ... dobj4]]
[EXPORTING p1 = a1 p2 = a2 ...] }
| oref }.
Effect
Raises a class-based exception.
Additions
-
RESUMABLE
Raises a resumable exception. -
TYPE cx_class [EXPORTING p1 = a1 p2 = a2 ...]
Specifies the exception class of the exception object. -
MESSAGE
Passes the specification of a message to the exception object. -
EXPORTING p1 = a1 p2 = a2 ...
Passes actual parametersa1
,a2
, ... to the input parametersp1
,p2
, ... of the instance constructor of the exception object. -
oref
Uses an existing exception object, pointed to byoref
.