File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
- # code pal for ABAP
2
-
3
1
[ code pal for ABAP] ( ../../README.md ) > [ Documentation] ( ../check_documentation.md ) > [ Non-Class Exception Usage Check] ( non-class-exception.md )
4
2
5
3
## Non-Class Exception Check Usage
6
4
7
5
### What is the Intent of the Check?
8
6
9
- The “Non-Class Exception Usage” Check searches for non-class based execeptions raised in your code.
7
+ This check searches for non-class based execeptions raised in your code.
10
8
11
9
### How does the check work?
12
10
@@ -16,10 +14,6 @@ It search for non class-based exceptions like:
16
14
* ` RAISE ` ( without ` EXCEPTION ` or ` RESUMABLE EXCEPTION ` )
17
15
* ` MESSAGE with RAISING `
18
16
19
- ### Which attributes can be maintained?
20
-
21
- ![ Attributes] ( ./imgs/non_class_based_exception.png )
22
-
23
17
### How to solve the issue?
24
18
25
19
The solution is to use class-base exceptions like:
@@ -31,7 +25,7 @@ The solution is to use class-base exceptions like:
31
25
32
26
### What to do in case of exception?
33
27
34
- In special cases you can suppress this Check’s finding by using the pseudo comment ` “#EC NON_CL_EXCEPT ` .
28
+ In exceptional cases, you can suppress this finding by using the pseudo comment ` “#EC NON_CL_EXCEPT ` :
35
29
36
30
``` abap
37
31
RAISE SYSTEM-EXCEPTIONS. "#EC NON_CL_EXCEPT
You can’t perform that action at this time.
0 commit comments