In addition to the MESSAGE, add a new context, p.e. CUSTOM_MESSAGE, to receive only a custom exception message, without exception number, name, and stack.
example MESSAGE
exception 113
ARN$ERROR
Invalid state change for used ticket
At procedure ARN$SET_STATE line: 176, col: 31
At procedure SALE$DOC_DELETE line: 131, col: 40
At procedure EXT$BILL_REFUND_START line: 111, col: 11
At procedure EXT$BILL_REFUND line: 49, col: 12.
example CUSTOM_MESSAGE
Invalid state change for used ticket
In addition to the MESSAGE, add a new context, p.e. CUSTOM_MESSAGE, to receive only a custom exception message, without exception number, name, and stack.
example MESSAGE
exception 113
ARN$ERROR
Invalid state change for used ticket
At procedure ARN$SET_STATE line: 176, col: 31
At procedure SALE$DOC_DELETE line: 131, col: 40
At procedure EXT$BILL_REFUND_START line: 111, col: 11
At procedure EXT$BILL_REFUND line: 49, col: 12.
example CUSTOM_MESSAGE
Invalid state change for used ticket