com.vii.brillien.kernel
Class BrillienException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.vii.brillien.kernel.BrillienException
All Implemented Interfaces:
Serializable

public class BrillienException
extends Exception

Basic Exception class used in almost every "problematical" behavior in Brillien

See Also:
Serialized Form

Field Summary
protected  int errorCode
          Error code of the exception
protected  Object value
          Optional attachement value
 
Constructor Summary
BrillienException(int errorCode, String s)
           
BrillienException(int errorCode, String s, Object value)
           
BrillienException(int errorCode, String message, Throwable cause)
           
BrillienException(int errorCode, String message, Throwable cause, Object value)
           
BrillienException(int errorCode, Throwable cause)
           
BrillienException(String s)
           
BrillienException(String message, Throwable cause)
           
BrillienException(Throwable cause)
           
 
Method Summary
protected static Throwable getCause(Throwable cause)
          Service method to get the lowest cause of an exceptional event
 int getErrorCode()
          Getter method for field errorCode
 String getMessage()
           
 Object getValue()
          Setter method for field value
static BrillienException raise(int errorCode, String message)
          Factory method to aid exception creation
static BrillienException raise(int errorCode, String message, Object payLoad)
          Factory method to aid exception creation
static BrillienException raise(String message)
          Factory method to aid exception creation
 void setErrorCode(int errorCode)
          Setter method for field errorCode
 void setValue(Object value)
          Setter method for field value
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

protected int errorCode
Error code of the exception


value

protected Object value
Optional attachement value

Constructor Detail

BrillienException

public BrillienException(String s)

BrillienException

public BrillienException(int errorCode,
                         String s)

BrillienException

public BrillienException(int errorCode,
                         String s,
                         Object value)

BrillienException

public BrillienException(Throwable cause)

BrillienException

public BrillienException(int errorCode,
                         Throwable cause)

BrillienException

public BrillienException(String message,
                         Throwable cause)

BrillienException

public BrillienException(int errorCode,
                         String message,
                         Throwable cause)

BrillienException

public BrillienException(int errorCode,
                         String message,
                         Throwable cause,
                         Object value)
Method Detail

getErrorCode

public int getErrorCode()
Getter method for field errorCode


setErrorCode

public void setErrorCode(int errorCode)
Setter method for field errorCode


getValue

public Object getValue()
Setter method for field value


setValue

public void setValue(Object value)
Setter method for field value


getCause

protected static Throwable getCause(Throwable cause)
Service method to get the lowest cause of an exceptional event


getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

raise

public static BrillienException raise(String message)
Factory method to aid exception creation


raise

public static BrillienException raise(int errorCode,
                                      String message)
Factory method to aid exception creation


raise

public static BrillienException raise(int errorCode,
                                      String message,
                                      Object payLoad)
Factory method to aid exception creation



Copyright © 2012. All Rights Reserved.