|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.struts.tiles.TilesException
public class TilesException
Root class for all Tiles-exceptions.
Constructor Summary | |
---|---|
TilesException()
Constructor. |
|
TilesException(Exception e)
Create a new TilesException wrapping an existing exception. |
|
TilesException(String message)
Constructor. |
|
TilesException(String message,
Exception e)
Create a new TilesException from an existing exception. |
Method Summary | |
---|---|
Exception |
getException()
Return the embedded exception, if any. |
String |
getMessage()
Return a detail message for this exception. |
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 TilesException()
public TilesException(String message)
message
- The error or warning message.public TilesException(Exception e)
TilesException
wrapping an existing exception.
The existing exception will be embedded in the new one, and its message will become the default message for the TilesException.
e
- The exception to be wrapped.public TilesException(String message, Exception e)
TilesException
from an existing exception.
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.e
- The exception to be wrapped.Method Detail |
---|
public String getMessage()
If there is a embedded exception, and if the TilesException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class Throwable
public Exception getException()
null
if there is none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |