com.groiss.util
Class ApplicationRtException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.groiss.util.ApplicationRtException
All Implemented Interfaces:
TopLevelException, java.io.Serializable

public class ApplicationRtException
extends java.lang.RuntimeException
implements TopLevelException

Class for Exception thrown from Application, taken from Grand, Patterns in Java

See Also:
Serialized Form

Field Summary
protected  java.lang.Object[] args
           
protected  ErrorFormatter ef
           
protected  int errnum
           
protected  java.lang.Throwable exception
           
protected  boolean isWarning
           
 
Constructor Summary
ApplicationRtException(int errnum)
          Construct an ApplicationRtException with an exception number
ApplicationRtException(int errnum, java.lang.Object[] args, java.lang.Throwable t)
          Construct an ApplicationRtException with an exception number, parameters for that exception and the causing Throwable
ApplicationRtException(java.lang.String message)
          Construct an ApplicationRtException with a message.
ApplicationRtException(java.lang.Throwable t)
          Construct an ApplicationRtException with a Throwable
 
Method Summary
 int getErrnum()
           
 ErrorFormatter getErrorFormatter()
          Returns the error formatter for this exception.
 java.lang.Throwable getException()
           
 java.lang.String getMessage()
           
 boolean isWarning()
           
 void setErrorFormatter(ErrorFormatter ef)
          Set the formatter for formatting the error page.
 void setWarning(boolean warning)
           
 
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

errnum

protected int errnum

exception

protected java.lang.Throwable exception

args

protected java.lang.Object[] args

isWarning

protected boolean isWarning

ef

protected ErrorFormatter ef
Constructor Detail

ApplicationRtException

public ApplicationRtException(int errnum)
Construct an ApplicationRtException with an exception number


ApplicationRtException

public ApplicationRtException(int errnum,
                              java.lang.Object[] args,
                              java.lang.Throwable t)
Construct an ApplicationRtException with an exception number, parameters for that exception and the causing Throwable


ApplicationRtException

public ApplicationRtException(java.lang.Throwable t)
Construct an ApplicationRtException with a Throwable


ApplicationRtException

public ApplicationRtException(java.lang.String message)
Construct an ApplicationRtException with a message.

Method Detail

getException

public java.lang.Throwable getException()
Specified by:
getException in interface TopLevelException

setWarning

public void setWarning(boolean warning)
Specified by:
setWarning in interface TopLevelException

isWarning

public boolean isWarning()
Specified by:
isWarning in interface TopLevelException

getErrnum

public int getErrnum()
Specified by:
getErrnum in interface TopLevelException

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

setErrorFormatter

public void setErrorFormatter(ErrorFormatter ef)
Set the formatter for formatting the error page.

Parameters:
ef -

getErrorFormatter

public ErrorFormatter getErrorFormatter()
Returns the error formatter for this exception. If none is set, the method return null and the default ErrorFormatter defined in the system configuration will be used. If none is defined, DefaultErrorFormatter is used.

Returns:
the error formatter set for this exception.


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.