Manual Reference Pages - XML::SAX::EXCEPTION (3)
XML::SAX::Exception - Exception classes for XML::SAX
Message => "The foo feature is not supported",
This module is the base class for all SAX Exceptions, those defined in
the spec as well as those that one may create for ones own SAX errors.
There are three subclasses included, corresponding to those of the SAX
Use them wherever you want, and as much as possible when you encounter
such errors. SAX is meant to use exceptions as much as possible to
CREATING NEW EXCEPTION CLASSES
All you need to do to create a new exception class is:
@XML::SAX::Exception::MyException::ISA = (XML::SAX::Exception)
The given package doesnt need to exist, itll behave correctly this
way. If your exception refines an existing exception class, then you
may also inherit from that instead of from the base class.
This is as simple as exemplified in the SYNOPSIS. In fact, theres
nothing more to know. All you have to do is:
throw XML::SAX::Exception::MyException( Message => Something went wrong );
and voila, youve thrown an exception which can be caught in an eval block.
|perl v5.20.3 ||XML::SAX::EXCEPTION (3) ||2011-09-14 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.