org.apache.avalon.util.env
Class EnvAccessException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.avalon.util.env.EnvAccessException
All Implemented Interfaces:
Serializable

public class EnvAccessException
extends Exception

A simple wrapper exception around exceptions that could occur while accessing environment parameters.

Version:
$Revision: 1.1.1.1 $
Author:
Alex Karasulu, Stephen McConnell
See Also:
Serialized Form

Field Summary
 Throwable m_cause
          root cause
 String m_variable
          the environment variable name if available
 
Method Summary
 Throwable getCause()
          Return the causal exception.
 String getMessage()
          Prepends variable name to the base message.
 String getVariable()
          Gets the variable that was to be accessed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
 

Field Detail

m_variable

public final String m_variable
the environment variable name if available


m_cause

public final Throwable m_cause
root cause

Method Detail

getVariable

public String getVariable()
Gets the variable that was to be accessed.

Returns:
the value of the variable

getCause

public Throwable getCause()
Return the causal exception.

Returns:
the exception that caused this exception (possibly null)

getMessage

public String getMessage()
Prepends variable name to the base message.

See Also:
Throwable.getMessage()


Copyright © Apache Software Foundation. All Rights Reserved.