Skip to content

Commit

Permalink
some exception texts (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp authored Jan 31, 2024
1 parent 63b4f43 commit 9b38c16
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/exceptions/cx_sy_arithmetic_overflow.clas.abap
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
CLASS cx_sy_arithmetic_overflow DEFINITION PUBLIC INHERITING FROM cx_sy_arithmetic_error.

PUBLIC SECTION.
METHODS if_message~get_text REDEFINITION.

ENDCLASS.

CLASS cx_sy_arithmetic_overflow IMPLEMENTATION.

METHOD if_message~get_text.
result = 'Arithmetic overflow'.
ENDMETHOD.

ENDCLASS.
7 changes: 7 additions & 0 deletions src/exceptions/cx_sy_conversion_no_number.clas.abap
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
CLASS cx_sy_conversion_no_number DEFINITION PUBLIC INHERITING FROM cx_sy_conversion_error.

PUBLIC SECTION.
METHODS if_message~get_text REDEFINITION.

ENDCLASS.

CLASS cx_sy_conversion_no_number IMPLEMENTATION.

METHOD if_message~get_text.
result = 'Conversion no number'.
ENDMETHOD.

ENDCLASS.
7 changes: 7 additions & 0 deletions src/exceptions/cx_sy_range_out_of_bounds.clas.abap
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
CLASS cx_sy_range_out_of_bounds DEFINITION PUBLIC INHERITING FROM cx_sy_data_access_error.

PUBLIC SECTION.
METHODS if_message~get_text REDEFINITION.

ENDCLASS.

CLASS cx_sy_range_out_of_bounds IMPLEMENTATION.

METHOD if_message~get_text.
result = 'Range out of bounds'.
ENDMETHOD.

ENDCLASS.

0 comments on commit 9b38c16

Please sign in to comment.