amber.server.exception
Class AmberException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--amber.server.exception.AmberException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AmberMessagingException, ApplicationException, ComponentHandlerException, DatabaseManagerException, LicenseKeyException, ManagerException, PanelHandlerException, ServerException

public class AmberException
extends java.lang.Exception

This class is the base class for all exceptions thrown by the Amber server. It allows the concept of nested exceptions which are all dumped when the printStackTrace function is invoked.

Version:
1.0.0
Author:
Dr. David J. Knowles
See Also:
Exception, Serialized Form

Constructor Summary
AmberException(int errorCode)
           
AmberException(java.lang.String msg)
           
AmberException(java.lang.String msg, int errorCode)
           
AmberException(java.lang.String msg, int errorCode, java.lang.Throwable ex)
           
AmberException(java.lang.String msg, java.lang.Throwable ex)
           
 
Method Summary
 void addException(java.lang.Throwable ex)
           
 int getErrorCode()
           
 java.lang.Throwable getPriorException()
           
 void printStackTrace()
          Prints this Exception and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream stream)
          Prints this Exception and its backtrace to the input stream.
 void printStackTrace(java.io.PrintWriter writer)
          Prints this Exception and its backtrace to the input print writer.
 void setErrorCode(int error)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmberException

public AmberException(java.lang.String msg)

AmberException

public AmberException(java.lang.String msg,
                      java.lang.Throwable ex)

AmberException

public AmberException(int errorCode)

AmberException

public AmberException(java.lang.String msg,
                      int errorCode)

AmberException

public AmberException(java.lang.String msg,
                      int errorCode,
                      java.lang.Throwable ex)
Method Detail

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int error)

addException

public void addException(java.lang.Throwable ex)

getPriorException

public java.lang.Throwable getPriorException()

printStackTrace

public void printStackTrace()
Prints this Exception and its backtrace to the standard error stream.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Prints this Exception and its backtrace to the input stream.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
stream - PrintStream to dump the information to.

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Prints this Exception and its backtrace to the input print writer.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
writer - PrintStream to dump the information to.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.