net.sourceforge.gandalf
Class WizardException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--net.sourceforge.gandalf.WizardException
- All Implemented Interfaces:
- java.io.Serializable
- public class WizardException
- extends java.lang.Exception
- See Also:
- Serialized Form
Constructor Summary |
WizardException()
Constructs a WizardException object with no detailed message |
WizardException(java.lang.String message)
Constructs a WizardException object with the specified detailed message |
WizardException(java.lang.String message,
java.lang.Exception e)
Constructs a WizardException object with the specified detailed
message and exception |
Method Summary |
java.lang.String |
getMessage()
Produce the message, include the message from the nested
exception if there is one. |
java.lang.Exception |
getNextException()
Get the next exception chained to this one. |
boolean |
setNextException(java.lang.Exception ex)
Add an exception to the end of the chain. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WizardException
public WizardException()
- Constructs a WizardException object with no detailed message
WizardException
public WizardException(java.lang.String message)
- Constructs a WizardException object with the specified detailed message
- Parameters:
message
- a description of the exception
WizardException
public WizardException(java.lang.String message,
java.lang.Exception e)
- Constructs a WizardException object with the specified detailed
message and exception
- Parameters:
message
- a description of the exception
getNextException
public java.lang.Exception getNextException()
- Get the next exception chained to this one. If the
next exception is a WizardException, the chain
may extend further.
- Returns:
- next Exception, null if none.
setNextException
public boolean setNextException(java.lang.Exception ex)
- Add an exception to the end of the chain. If the end
is not a WizardException, this
exception cannot be added to the end.
- Parameters:
ex
- the new end of the Exception chain- Returns:
true
if the this Exception
was added, false
otherwise.
getMessage
public java.lang.String getMessage()
- Produce the message, include the message from the nested
exception if there is one.
- Overrides:
getMessage
in class java.lang.Throwable