org.ops4j.util.environment
Class EnvironmentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.ops4j.util.environment.EnvironmentException
All Implemented Interfaces:
java.io.Serializable

public class EnvironmentException
extends java.lang.RuntimeException

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

Version:
$Id: EnvironmentException.java 10301 2008-01-26 07:01:32Z adreghiciu@gmail.com $
Author:
Open Particpation Software for Java
See Also:
Serialized Form

Method Summary
 java.lang.Throwable getCause()
          Return the causal exception.
 java.lang.String getMessage()
          Prepends variable name to the base message.
 java.lang.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
 

Method Detail

getVariable

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

Returns:
the value of the variable

getCause

public java.lang.Throwable getCause()
Return the causal exception.

Overrides:
getCause in class java.lang.Throwable
Returns:
the exception that caused this exception (possibly null)

getMessage

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

Overrides:
getMessage in class java.lang.Throwable
Returns:
the message of the Exception.
See Also:
Throwable.getMessage()


Copyright © 2006-2009 OPS4J - Open Participation Software for Java. All Rights Reserved.