org.apache.struts.tiles

Class TilesException

public class TilesException extends Exception

Root class for all Tiles-exceptions.
Field Summary
Exceptionexception
Any "wrapped" exception will be exposed when this is serialized.
Constructor Summary
TilesException()
Constructor.
TilesException(String message)
Constructor.
TilesException(Exception e)
Create a new TilesException wrapping an existing exception.
TilesException(String message, Exception e)
Create a new TilesException from an existing exception.
Method Summary
ExceptiongetException()
Return the embedded exception, if any.
StringgetMessage()
Return a detail message for this exception.

Field Detail

exception

private Exception exception
Any "wrapped" exception will be exposed when this is serialized.

Serial:

Constructor Detail

TilesException

public TilesException()
Constructor.

TilesException

public TilesException(String message)
Constructor.

Parameters: message The error or warning message.

TilesException

public TilesException(Exception e)
Create a new 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.

Parameters: e The exception to be wrapped.

TilesException

public TilesException(String message, Exception e)
Create a new TilesException from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

Parameters: message The detail message. e The exception to be wrapped.

Method Detail

getException

public Exception getException()
Return the embedded exception, if any.

Returns: The embedded exception, or null if there is none.

getMessage

public String getMessage()
Return a detail message for this exception.

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.

Returns: The error or warning message.

Copyright © 2000-2008 - The Apache Software Foundation