2008 Apr 17 11:38 PM
I m writing some code and calling lots of functions. I want to write a generic catch block which will catch any and every type of exception, I dont want to get a runtime error at all, no matter what the exception. Is it possible. If so what exception class do i need to use.
2008 Apr 17 11:44 PM
Hello,
Yes, it's possible:
TRY.
lr_ref1 ?= lr_ref2.
CATCH cx_root.
WRITE 'Error'.
ENDTRY.
And I suggest you to read the follwing:
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f86c9290-0201-0010-7a93-dda3716dc0d2]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20a3cc03-2d6b-2910-588b-88d8c6659e40]
Regards,
2008 Apr 17 11:44 PM
Hello,
Yes, it's possible:
TRY.
lr_ref1 ?= lr_ref2.
CATCH cx_root.
WRITE 'Error'.
ENDTRY.
And I suggest you to read the follwing:
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f86c9290-0201-0010-7a93-dda3716dc0d2]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20a3cc03-2d6b-2910-588b-88d8c6659e40]
Regards,