XML::SAX::Exception



XML::SAX::Exception

NAME
SYNOPSIS
DESCRIPTION
CREATING NEW EXCEPTION CLASSES
THROWING EXCEPTIONS

NAME

XML::SAX::Exception − Exception classes for XML::SAX

SYNOPSIS

  throw XML::SAX::Exception::NotSupported(
          Message => "The foo feature is not supported",
          );

DESCRIPTION

This module is the base class for all SAX Exceptions, those defined in the spec as well as those that one may create for one’s own SAX errors.

There are three subclasses included, corresponding to those of the SAX spec:

  XML::SAX::Exception::NotSupported
  XML::SAX::Exception::NotRecognized
  XML::SAX::Exception::Parse

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 flag problems.

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 doesn’t need to exist, it’ll 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.

THROWING EXCEPTIONS

This is as simple as exemplified in the SYNOPSIS . In fact, there’s nothing more to know. All you have to do is:

  throw XML::SAX::Exception::MyException( Message => 'Something went wrong' );

and voila, you’ve thrown an exception which can be caught in an eval block.



More Linux Commands

manpages/XGetFontProperty.3.html
XGetFontProperty(3) - load or unload fonts and font metric s
The XLoadFont function loads the specified font and returns its associated font ID. If the font name is not in the Host Portable Character Encoding, the result

manpages/glEdgeFlagPointer.3gl.html
glEdgeFlagPointer(3gl) - define an array of edge flags......
glEdgeFlagPointer specifies the location and data of an array of boolean edge flags to use when rendering. stride specifies the byte stride from one edge flag t

manpages/control.ctl.5.html
control.ctl(5) - Specify handling of Usenet control messages
The file pathetc/control.ctl is used to determine what action is taken when a control message is received. It is read by controlchan, which is normally invoked

manpages/XDGACopyArea.3.html
XDGACopyArea(3) - Client library for the XFree86-DGA extensi
The XFree86-DGA extension is an X server extension for allowing client programs direct access to the video frame buffer. This is a brief description of the prog

manpages/pkg_mkIndex.n.html
pkg_mkIndex(n) - Build an index for automatic loading of pac
Pkg_mkIndex is a utility procedure that is part of the standard Tcl library. It is used to create index files that allow packages to be loaded automatically whe

manpages/ggz.h.3.html
ggz.h(3) - (unknown subject) (Library - Linux man page).....
Author: Brent M. Hendricks Date: Fri Nov 2 23:32:17 2001 Id.RS 4 ggz.h,v 1.59 2005/05/21 10:19:22 josef Exp Header file for ggz components lib Copyright (C) 200

manpages/noqiflush_sp.3ncurses.html
noqiflush_sp(3ncurses) - curses screen-pointer extension....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/inews.1.html
inews(1) - Post a Usenet article to the local news server...
inews reads a Usenet news article, perhaps with headers, from file or standard input if no file is given. It adds some headers and performs some consistency che

manpages/blogger.8.html
blogger(8) - writes messages to a running blogd process.....
blogger is used to send messages to the blogd process during boot phase. These messages will only appear in the boot logging file /var/log/boot.msg and not on /

manpages/lsattr.1.html
lsattr(1) - list file attributes on a Linux second extended
lsattr lists the file attributes on a second extended file system. See chattr(1) for a description of the attributes and what they mean. OPTIONS -R Recursively

manpages/gnutls_priority_init.3.html
gnutls_priority_init(3) - API function - Linux manual page
Sets priorities for the ciphers, key exchange methods, macs and compression methods. The priorities option allows you to specify a colon separated list of the c

manpages/XtIsRealized.3.html
XtIsRealized(3) - realize and unrealize widgets (Man Page)
If the widget is already realized, XtRealizeWidget simply returns. Otherwise, it performs the following: * Binds all action names in the widgets translation tab





We can't live, work or learn in freedom unless the software we use is free.