public class TilesException
extends java.lang.Exception
Constructor and Description |
---|
TilesException()
Constructor.
|
TilesException(java.lang.Exception e)
Create a new
TilesException wrapping an existing exception. |
TilesException(java.lang.String message)
Constructor.
|
TilesException(java.lang.String message,
java.lang.Exception e)
Create a new
TilesException from an existing exception. |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Return the embedded exception, if any.
|
java.lang.String |
getMessage()
Return a detail message for this exception.
|
public TilesException()
public TilesException(java.lang.String message)
message
- The error or warning message.public TilesException(java.lang.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(java.lang.String message, java.lang.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.public java.lang.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 java.lang.Throwable
public java.lang.Exception getException()
null
if there is none.Copyright © 2000–2018 Apache Software Foundation. All rights reserved.