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: SystemError.java,v 1.2 2002/07/11 16:53:21 mpoeschl Exp $
Author:
Neeme Praks

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, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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 © 2000-2002 Apache Software Foundation. All Rights Reserved.