marytts.exceptions
Class MaryConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
marytts.exceptions.MaryConfigurationException
- All Implemented Interfaces:
- java.io.Serializable
public class MaryConfigurationException
- extends java.lang.Exception
A class representing severe expected error conditions,
such as wrong format of data files needed to set up the system.
Typically a MaryConfigurationException means it is impossible to continue operating.
According to the fail-early strategy, it is preferable to throw MaryConfigurationException
during server startup, and to abort the startup if one is thrown.
- Author:
- marc
- See Also:
- Serialized Form
|
Constructor Summary |
MaryConfigurationException(java.lang.String message)
Construct a MaryConfigurationException with only an error message. |
MaryConfigurationException(java.lang.String message,
java.lang.Throwable cause)
Create a MaryConfigurationException with a message and a cause. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MaryConfigurationException
public MaryConfigurationException(java.lang.String message)
- Construct a MaryConfigurationException with only an error message.
This constructor should only be used if our program code
has identified the error condition. In order to wrap
another Exception into a MaryConfigurationException with a
meaningful error message, use
MaryConfigurationException(String, Throwable).
- Parameters:
message - a meaningful error message describing the problem.
MaryConfigurationException
public MaryConfigurationException(java.lang.String message,
java.lang.Throwable cause)
- Create a MaryConfigurationException with a message and a cause.
Use this to wrap another Exception into a MaryConfigurationException with a
meaningful error message.
- Parameters:
message - a meaningful error message describing the problem.cause - the exception or error that caused the problem.