Skip to content

ABAP Keyword Documentation →  ABAP − Short Reference 

RAISE EXCEPTION - Short Reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


RAISE [RESUMABLE] EXCEPTION 
  { {TYPE cx_class [EXPORTING p1 = a1 p2 = a2 ...]}
  | oref }.

Effect

Triggers a class-based exception.

Additions

  • RESUMABLE
    Triggers a resumable exception.
  • TYPE cx_class [EXPORTING p1 = a1 p2 = a2 ...]
    Specifies the exception class and transfers actual parameters a1, a2, ... to the input parameters p1, p2, ... of the constructor.
  • oref
    Uses an existing exception object that refers to the oref.