Exception Objects
But $@ might be just a string
if(ref($@) and $@->isa('Exception::ICanHandle')) { # Do stuff }