ORA-21002
attempted to reraise a cleared error
Cause
The error stack was cleared by either raise_application_error or raise_system_error and a reraise was attempted after the clear.
Action
Remove the reraise or keep the error stack when calling raise_application_error or raise_system_error.