com.ibm.redback.redbeans
Class RbException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.redback.redbeans.RbException
All Implemented Interfaces:
java.io.Serializable

public class RbException
extends java.lang.Exception

Exception generated from RedBeans at various classes and methods

See Also:
Serialized Form

Field Summary
static int CONNECTIONERROR
           
static int REDBEANSERROR
           
static int SERVERERROR
           
 
Constructor Summary
RbException(int type, java.lang.String message)
          Creates an exception that will be thrown to calling code.
 
Method Summary
 java.lang.String getMessage()
          This method gets current exception message.
 int getType()
          This method gets type of exception
 java.lang.String getTypeDesc()
          This method gets the description of exception type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONNECTIONERROR

public static final int CONNECTIONERROR

SERVERERROR

public static final int SERVERERROR

REDBEANSERROR

public static final int REDBEANSERROR
Constructor Detail

RbException

public RbException(int type,
                   java.lang.String message)
Creates an exception that will be thrown to calling code. Indicates an error where type =
connection error = 1;
server error     = 2;
RedBeans error   = 3;
Method Detail

getType

public int getType()
This method gets type of exception

getMessage

public java.lang.String getMessage()
This method gets current exception message.
Overrides:
getMessage in class java.lang.Throwable

getTypeDesc

public java.lang.String getTypeDesc()
This method gets the description of exception type.