org.ourgrid.common.config
Class ConfigException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ourgrid.common.exception.OurgridException
              extended by org.ourgrid.common.config.ConfigException
All Implemented Interfaces:
java.io.Serializable

public class ConfigException
extends OurgridException

Used to signalize errors related to the MyGrid properties (see MG.properties) and its uses.

See Also:
Serialized Form

Constructor Summary
ConfigException(java.lang.String wrongParameter)
          Constructor that receives a string that defines the MyGrid property related to the exception.
ConfigException(java.lang.String wrongParameter, java.lang.Throwable detail)
           
ConfigException(java.lang.Throwable detail)
           
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.String getParameter()
           
 
Methods inherited from class org.ourgrid.common.exception.OurgridException
getStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigException

public ConfigException(java.lang.Throwable detail)

ConfigException

public ConfigException(java.lang.String wrongParameter)
Constructor that receives a string that defines the MyGrid property related to the exception.

Parameters:
wrongParameter - the MyGrid property related to the exception.

ConfigException

public ConfigException(java.lang.String wrongParameter,
                       java.lang.Throwable detail)
Method Detail

getParameter

public java.lang.String getParameter()
Returns:
the property that is related with the exception.

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class OurgridException
See Also:
Throwable.getMessage()