org.sapia.util
Class ApplicationStarterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.sapia.util.ApplicationStarterException
All Implemented Interfaces:
java.io.Serializable

public class ApplicationStarterException
extends java.lang.Exception

This exception is thrown by the ApplicationStarter when an error prevent it from starting an application.

Author:
Jean-Cedric Desrochers
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site
See Also:
Serialized Form

Constructor Summary
ApplicationStarterException(java.lang.String aMessage, java.lang.Throwable aSourceError)
          Creates a new ApplicationStarterException instance with the arguments passed in.
 
Method Summary
 java.lang.Throwable getSourceError()
          Returns the source error encapsulated in this exception.
 void printStackTrace()
          Prints the stack trace of this exception to the standard error stream.
 void printStackTrace(java.io.PrintStream anOutput)
          Prints the stack trace of this exception to the print stream passed in.
 void printStackTrace(java.io.PrintWriter anOutput)
          Prints the stack trace of this exception to the print writer passed in.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationStarterException

public ApplicationStarterException(java.lang.String aMessage,
                                   java.lang.Throwable aSourceError)
Creates a new ApplicationStarterException instance with the arguments passed in.

Parameters:
aMessage - The message describing the error.
aSourceError - The source error to encapsulate.
Method Detail

getSourceError

public java.lang.Throwable getSourceError()
Returns the source error encapsulated in this exception.

Returns:
The source error encapsulated in this exception.

printStackTrace

public void printStackTrace()
Prints the stack trace of this exception to the standard error stream.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter anOutput)
Prints the stack trace of this exception to the print writer passed in.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream anOutput)
Prints the stack trace of this exception to the print stream passed in.

Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 2010 Sapia OSS. All Rights Reserved.