I have two procedures PROC_A
and PROC_B
.
In both procedure transaction are managed.
PROC_B
throws an error by calling RAISEERROR
and passes a message in certain condition
RAISERROR ('Initiator is Inactive', 16, 1, 'Approve Transaction');
I am executing (calling) PROC_B
in PROC_A
. Now I want to get the error message thrown by PROC_B
in PROC_A
.
How can I do that?