Help for this page
if ( my $e = X::Class::SubClass1->caught ) { # handle ... elsif ( my $e = X::Class::SubClass2->caught ) { # handle }