RAREXCEPTION(3) 1 RAREXCEPTION(3)The RarException classINTRODUCTION
This class serves two purposes: it is the type of the exceptions thrown by the RAR extension functions and methods and it allows, through
static methods to query and define the error behaviour of the extension, i.e., whether exceptions are thrown or only warnings are emitted.
The following error codes are used:
o -1 - error outside UnRAR library
o 11 - insufficient memory
o 12 - bad data
o 13 - bad archive
o 14 - unknown format
o 15 - file open error
o 16 - file create error
o 17 - file close error
o 18 - read error
o 19 - write error
o 20 - buffer too small
o 21 - unkown RAR error
o 22 - password required but not given
CLASS SYNOPSIS
RarException
final
RarExceptionextends
Exception
Methods
o publicstatic bool RarException::isUsingExceptions (void )
o publicstatic void RarException::setUsingExceptions (bool $using_exceptions)
Inherited methods
o finalpublic string Exception::getMessage (void )
o finalpublic Exception Exception::getPrevious (void )
o finalpublic mixed Exception::getCode (void )
o finalpublic string Exception::getFile (void )
o finalpublic int Exception::getLine (void )
o finalpublic array Exception::getTrace (void )
o finalpublic string Exception::getTraceAsString (void )
o public string Exception::__toString (void )
o finalprivate void Exception::__clone (void )
PHP Documentation Group RAREXCEPTION(3)
Check Out this Related Man Page
XML::SAX::Exception(3) User Contributed Perl Documentation XML::SAX::Exception(3)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.
perl v5.18.2 2011-09-14 XML::SAX::Exception(3)
Any idea what this error meant? I got this error "Anaconda Exception: parserError: xmlParseMemory() failed" while performing kickstart. My linux distro is a redhat4.
Thank You. (2 Replies)
Hi All,
I have a requirement where I have to search the file with some text say "Exception". This exception word can be repeated for more then 10 times.
Suppose the "Exception" word is repeated at line numbers say x=10, 50, 60, 120. Now I want to extract all the lines starting from x-5 to... (3 Replies)
Hello,
I am using MPC880 and vxworks5.5..
When i try to boot vxworks image from the flash, its giving the following error message and tries to reboot continuously.
Exception at interrupt level:
Implementation Dependent Instruction TLB Error
Exception current instruction address:... (0 Replies)
Hi Friend,
Could you please provide me with some tutorial for Advanced Exception handling in C++, mainly set_terminate() and set_unexpected() functions?
Please find the details below:
OS: Unix
Compiler: gcc.
Thanks. :)
Awesome001 (0 Replies)
Discussion started by: awesome001
0 Replies
6. Post Here to Contact Site Administrators and Moderators