Results 1 to 7 of 7

Thread: What is class RarException in PHP?

  1. #1
    Join Date
    Aug 2006
    Posts
    162

    What is class RarException in PHP?

    Hi friends,
    I have done little thing with the Rar Archive in PHP programming language. I get confused with the classes that are used for the Rar files or archive. I want to know more about the class RarException that is used in PHP for the exception of the Rar files or Archive. So please explain me what is the class RarException in PHP? Hope that someone might got the point I am trying to ask.!! Help me as soon as possible.!!
    Technology is a way of organizing the universe so that man doesn't have to experience it.-- Max Frisch 1911 -1991

  2. #2
    Join Date
    Jul 2006
    Posts
    289

    Re: What is class RarException in PHP?

    The class RarException is the type of exception thrown by the RAR extension and allows, through its static methods, knowledge and define the behavior of error of extension, ie whether the exception should be issued or if PHP warnings should be issued. The following are the methods that are used for the class RarException :
    • public static bool isUsingExceptions (void)
    • public static void setUsingExceptions ($ bool using_exceptions)
    Signatures reduce available bandwidth

  3. #3
    Join Date
    Aug 2006
    Posts
    227

    Re: What is class RarException in PHP?

    The class RarException has the following error codes that are used :
    • -1 - Standard external library UnRAR
    • 11 - Memory
    • 12 - Invalid data
    • 13 - Invalid Archive
    • 14 - Unknown Format
    • 15 - Error opening file
    • 16 - Error creating a file
    • 17 - Error closing a file
    • 18 - Error reading
    • 19 - Error writing
    • 20 - Buffer too small
    • 21 - Unknown Error RAR
    • 22 - Password required but not supplied
    I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.

  4. #4
    Join Date
    Jul 2006
    Posts
    442

    Re: What is class RarException in PHP?

    The following are the Inherited methods that are used for class RarException :
    • final public string Exception:: getMessage (void)
    • final public Exception Exception: getPrevious (void)
    • final public int Exception:: getCode (void)
    • final public string Exception:: getFile (void)
    • final public int Exception:: getLine (void)
    • final public array Exception:: getLog (void)
    • final public string Exception:: getTraceAsString (void)
    • public string Exception:: __toString (void)
    • private final void Exception:: __clone (void)
    "When they give you ruled paper, write the other way..." J.R.J.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: What is class RarException in PHP?

    I have tried to explain the Properties in details :
    • message - Not part of the contract. Use RarException:: getMessage.
    • Code - Not part of the contract. Use RarException: getCode.
    • file - Not part of the contract. Use RarException:: getFile.
    • line - Not part of the contract. Use RarException: getLine.
    • usingExceptions - Not part of the contract. Use RarException: isUsingExceptions and RarException: setUsingExceptions.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    Re: What is class RarException in PHP?

    If you want to check if the error handler uses the exception or not, then you will have to RarException: isUsingExceptions. And the RarException: setUsingExceptions Enables or disables the exceptions in the error handler. The RarArchive class represents a RAR archive, which may be formed by several volumes (parts) and which contains a number of RAR entries.

  7. #7
    Adydsauza Guest

    Re: What is class RarException in PHP?

    That's all fine but without seeing the code itself, its quite difficult to help you in right direction.

Similar Threads

  1. Replies: 8
    Last Post: 08-10-2011, 11:06 PM
  2. What is the difference between Local class and global class in C++?
    By Dëfrim in forum Software Development
    Replies: 4
    Last Post: 03-01-2011, 10:44 PM
  3. Replies: 5
    Last Post: 12-02-2010, 06:23 PM
  4. Ultra solid drives:Imation M-Class and S-Class
    By Regina in forum Portable Devices
    Replies: 1
    Last Post: 03-04-2009, 10:34 AM
  5. Good news for CBSE CLASS X & CLASS IX - visit learnnext
    By surya_expert in forum Education Career and Job Discussions
    Replies: 0
    Last Post: 13-12-2008, 12:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,058,164.34580 seconds with 17 queries