I want to assign a value to a variable when exception occurs.
exception
when excep1 then
var = true;
when excep2 then
var = true;
end;
I want to do something like, Is it possible?
exception
var = true;
when excep1 then
-- do something
when excep2 then
-- do something
end;
Re-raising as Odi suggested would definitely work. You get the same effect by doing things a little differently.