M
Michal Sza
How can I read what type of error occured in rescue clause.
For example, I have the following:
begin
"some code here"
rescue
case
when "error type 1"
when "error type 2"
end
end
I know I could raise errors within code section and then have specif
rescues, but I want to have one rescue and then do different things with
it in the rescue.
Thanks in advance.
For example, I have the following:
begin
"some code here"
rescue
case
when "error type 1"
when "error type 2"
end
end
I know I could raise errors within code section and then have specif
rescues, but I want to have one rescue and then do different things with
it in the rescue.
Thanks in advance.