ok

Mini Shell

Direktori : /proc/thread-self/root/usr/lib64/python2.7/xml/sax/
Upload File :
Current File : //proc/thread-self/root/usr/lib64/python2.7/xml/sax/_exceptions.pyc

�
{fc@s�dZddlZejd dkr8ddlmZn[defd��YZdefd	��YZd
efd��YZdefd
��YZdefd��YZ	dS(s!Different kinds of SAX Exceptionsi����Nitjava(t	ExceptiontSAXExceptioncBs>eZdZdd�Zd�Zd�Zd�Zd�ZRS(s�Encapsulate an XML error or warning. This class can contain
    basic error or warning information from either the XML parser or
    the application: you can subclass it to provide additional
    functionality, or to add localization. Note that although you will
    receive a SAXException as the argument to the handlers in the
    ErrorHandler interface, you are not actually required to raise
    the exception; instead, you can simply read the information in
    it.cCs&||_||_tj||�dS(sUCreates an exception. The message is required, but the exception
        is optional.N(t_msgt
_exceptionRt__init__(tselftmsgt	exception((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyRs		cCs|jS(s$Return a message for this exception.(R(R((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyt
getMessagescCs|jS(s9Return the embedded exception, or None if there was none.(R(R((s+/usr/lib64/python2.7/xml/sax/_exceptions.pytgetExceptionscCs|jS(s0Create a string representation of the exception.(R(R((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyt__str__"scCstd��dS(svAvoids weird error messages if someone does exception[ix] by
        mistake, since Exception has __getitem__ defined.t__getitem__N(tAttributeError(Rtix((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyR&sN(	t__name__t
__module__t__doc__tNoneRR	R
RR(((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyR	s			tSAXParseExceptioncBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s#Encapsulate an XML parse error or warning.

    This exception will include information for locating the error in
    the original XML document. Note that although the application will
    receive a SAXParseException as the argument to the handlers in the
    ErrorHandler interface, the application is not actually required
    to raise the exception; instead, it can simply read the
    information in it and take a different action.

    Since this exception is a subclass of SAXException, it inherits
    the ability to wrap another exception.cCsVtj|||�||_|jj�|_|jj�|_|jj�|_dS(sECreates the exception. The exception parameter is allowed to be None.N(	RRt_locatortgetSystemIdt	_systemIdtgetColumnNumbert_colnumt
getLineNumbert_linenum(RRRtlocator((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyR;s
	cCs|jS(sNThe column number of the end of the text where the exception
        occurred.(R(R((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyRHscCs|jS(sDThe line number of the end of the text where the exception occurred.(R(R((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyRMscCs
|jj�S(sEGet the public identifier of the entity where the exception occurred.(RtgetPublicId(R((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyRQscCs|jS(sEGet the system identifier of the entity where the exception occurred.(R(R((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyRUscCsz|j�}|dkr!d}n|j�}|dkrBd}n|j�}|dkrcd}nd||||jfS(s0Create a string representation of the exception.s	<unknown>t?s%s:%s:%s: %sN(RRRRR(Rtsysidtlinenumtcolnum((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyRYs			(	RRRRRRRRR(((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyR.s	
				tSAXNotRecognizedExceptioncBseZdZRS(s�Exception class for an unrecognized identifier.

    An XMLReader will raise this exception when it is confronted with an
    unrecognized feature or property. SAX applications and extensions may
    use this class for similar purposes.(RRR(((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyR!istSAXNotSupportedExceptioncBseZdZRS(sException class for an unsupported operation.

    An XMLReader will raise this exception when a service it cannot
    perform is requested (specifically setting a state or value). SAX
    applications and extensions may use this class for similar
    purposes.(RRR(((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyR"sstSAXReaderNotAvailablecBseZdZRS(sException class for a missing driver.

    An XMLReader module (driver) should raise this exception when it
    is first imported, e.g. when a support module cannot be imported.
    It also may be raised during parsing, e.g. if executing an external
    program is not permitted.(RRR(((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyR#}s(
Rtsystplatformt	java.langRRRR!R"R#(((s+/usr/lib64/python2.7/xml/sax/_exceptions.pyt<module>s%;


Zerion Mini Shell 1.0