edu.cmu.sphinx.util.props
Class PropertyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by edu.cmu.sphinx.util.props.PropertyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InternalConfigurationException

public class PropertyException
extends java.lang.RuntimeException

Indicates that a problem occurred while setting one or more properties for this component

See Also:
Serialized Form

Constructor Summary
PropertyException(java.lang.Exception e)
           
PropertyException(java.lang.String instanceName, java.lang.String propertyName, java.lang.String msg)
          Creates a new property exception.
PropertyException(java.lang.Throwable cause, java.lang.String instanceName, java.lang.String propertyName, java.lang.String msg)
          Creates a new property exception.
 
Method Summary
 java.lang.String getMsg()
           
 java.lang.String getProperty()
          Retrieves the name of the offending property
 java.lang.String toString()
          Returns a string representation of this object
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyException

public PropertyException(java.lang.String instanceName,
                         java.lang.String propertyName,
                         java.lang.String msg)
Creates a new property exception.

Parameters:
instanceName - The component this exception is related to. (or null if unknown)
propertyName - The name of the component-property which the problem is related. (or null if unknown)
msg - a description of the problem.

PropertyException

public PropertyException(java.lang.Throwable cause,
                         java.lang.String instanceName,
                         java.lang.String propertyName,
                         java.lang.String msg)
Creates a new property exception.

Parameters:
cause - The cause of exception. (or null if unknown)
instanceName - The component this exception is related to. (or null if unknown)
propertyName - The name of the component-property which the problem is related. (or null if unknown)
msg - a description of the problem.

PropertyException

public PropertyException(java.lang.Exception e)
Method Detail

getMsg

public java.lang.String getMsg()
Returns:
Returns the msg.

getProperty

public java.lang.String getProperty()
Retrieves the name of the offending property

Returns:
the name of the offending property

toString

public java.lang.String toString()
Returns a string representation of this object

Overrides:
toString in class java.lang.Throwable
Returns:
the string representation of the object.