com.basistech.rlp
Class RLPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.basistech.rlp.RLPException
All Implemented Interfaces:
Serializable

public class RLPException
extends Exception

Methods of RLP throw objects of this class when they encounter an error. This class stores an integer error code, as documented in the RLP C++ API.

See Also:
Serialized Form

Constructor Summary
RLPException()
          Default constructor.
RLPException(int ec, String es)
          Creates a throwable object corresponding to one of the defined error codes.
RLPException(Throwable cause, String es)
          Creates a throwable object.
 
Method Summary
 int errorCode()
          Returns the error code associated with the error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RLPException

public RLPException()
Default constructor.


RLPException

public RLPException(int ec,
                    String es)
Creates a throwable object corresponding to one of the defined error codes.

Parameters:
ec - The error code.
es - A string describing the problem in greater detail.

RLPException

public RLPException(Throwable cause,
                    String es)
Creates a throwable object.

Parameters:
cause - The root cause of the exception.
es - A string describing the problem in greater detail.
Method Detail

errorCode

public int errorCode()
Returns the error code associated with the error.

Returns:
The error code.


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.