| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.sf.xbus.base.core.XException
public class XException
All errors that occur while processing a request are handled by throwing a
 XException. Because nearly all methods possibly throw a
 XException, only a few points (eg. the receivers) have to
 catch and handle it.
| Constructor Summary | |
|---|---|
XException(java.lang.String location,
           java.lang.String layer,
           java.lang.String Package,
           java.lang.String number)
Constructs a XException and traces the
 message and the backtrace. | 
|
XException(java.lang.String location,
           java.lang.String layer,
           java.lang.String Package,
           java.lang.String number,
           java.util.List params)
Constructs a XException and traces the
 message and the backtrace. | 
|
XException(java.lang.String location,
           java.lang.String layer,
           java.lang.String Package,
           java.lang.String number,
           java.lang.Throwable t)
Constructs a XException and traces the
 Throwable and the backtrace. | 
|
XException(java.lang.String location,
           java.lang.String layer,
           java.lang.String Package,
           java.lang.String number,
           java.lang.Throwable t,
           java.util.List params)
Constructs a XException and traces the
 Throwable and the backtrace. | 
|
| Method Summary | |
|---|---|
static void | 
clearExceptionInformation()
Removes information about previous exceptions.  | 
static java.lang.String | 
getExceptionInformation()
 | 
 java.lang.String | 
getMessage()
 | 
static void | 
setExceptionInformation(java.lang.String message,
                        java.lang.Throwable t)
Sets the information for the current XException  | 
| 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 | 
| Constructor Detail | 
|---|
public XException(java.lang.String location,
                  java.lang.String layer,
                  java.lang.String Package,
                  java.lang.String number)
XException and traces the
 message and the backtrace.
location - indicates wether this is an internal or an external
            problemlayer - indicates the layer where the error has occurredPackage - indicates the package where the error has occurrednumber - to identify the error
public XException(java.lang.String location,
                  java.lang.String layer,
                  java.lang.String Package,
                  java.lang.String number,
                  java.util.List params)
XException and traces the
 message and the backtrace.
location - indicates wether this is an internal or an external
            problemlayer - indicates the layer where the error has occurredPackage - indicates the package where the error has occurrednumber - to identify the errorparams - a list of values to be included in the message
public XException(java.lang.String location,
                  java.lang.String layer,
                  java.lang.String Package,
                  java.lang.String number,
                  java.lang.Throwable t,
                  java.util.List params)
XException and traces the
 Throwable and the backtrace.
location - indicates wether this is an internal or an external
            problemlayer - indicates the layer where the error has occurredPackage - indicates the package where the error has occurrednumber - to identify the errort - contains the thrown Exception.params - list of parameters to be inclueded in the message
public XException(java.lang.String location,
                  java.lang.String layer,
                  java.lang.String Package,
                  java.lang.String number,
                  java.lang.Throwable t)
XException and traces the
 Throwable and the backtrace.
location - indicates wether this is an internal or an external
            problemlayer - indicates the layer where the error has occurredPackage - indicates the package where the error has occurrednumber - to identify the errort - contains the thrown Exception.| Method Detail | 
|---|
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic static java.lang.String getExceptionInformation()
public static void setExceptionInformation(java.lang.String message,
                                           java.lang.Throwable t)
message - the message of this XExceptiont - the thrown Exception.public static void clearExceptionInformation()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||