org.apache.turbine.util
Class SystemError
java.lang.Object
|
+--org.apache.turbine.util.SystemError
- public class SystemError
- extends java.lang.Object
Used for wrapping system errors (exceptions) that may occur in the
application.
- Version:
- $Id$
- Author:
- Neeme Praks
Field Summary |
private java.lang.Exception |
e
|
private java.lang.String |
message
|
Constructor Summary |
SystemError(java.lang.Exception e)
Constructor. |
SystemError(java.lang.Exception e,
long returncode)
Constructor. |
SystemError(java.lang.Exception e,
java.lang.String message)
Constructor. |
Method Summary |
java.lang.Exception |
getException()
Get the exception. |
java.lang.String |
getMessage()
Get the message. |
java.lang.String |
getStackTrace()
Get the stack trace. |
void |
setException(java.lang.Exception e)
Set the exception. |
void |
setMessage(java.lang.String message)
Set the message. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
e
private java.lang.Exception e
message
private java.lang.String message
SystemError
public SystemError(java.lang.Exception e)
- Constructor.
- Parameters:
e
- An Exception.
SystemError
public SystemError(java.lang.Exception e,
java.lang.String message)
- Constructor.
- Parameters:
e
- An Exception.message
- A String.
SystemError
public SystemError(java.lang.Exception e,
long returncode)
- Constructor.
- Parameters:
e
- An Exception.returncode
- A long.
getMessage
public java.lang.String getMessage()
- Get the message.
- Returns:
- A String.
setMessage
public void setMessage(java.lang.String message)
- Set the message.
- Parameters:
message
- A String.
getException
public java.lang.Exception getException()
- Get the exception.
- Returns:
- An Exception.
setException
public void setException(java.lang.Exception e)
- Set the exception.
- Parameters:
e
- An Exception.
getStackTrace
public java.lang.String getStackTrace()
- Get the stack trace.
- Returns:
- A String.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.