com.objectxp.mms
Class ConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.objectxp.mms.ConfigurationException
All Implemented Interfaces:
java.io.Serializable

public class ConfigurationException
extends java.lang.RuntimeException

This exception is used for signaling configuration problems.

It is thrown by the MMSServiceFactory if the service configuration contains errors or no suitable MMSService implementation can be created.

Since:
jSMS 2.0
See Also:
Serialized Form

Constructor Summary
ConfigurationException(java.lang.String message)
          Constructs a new configuration exception with the specified detail message.
ConfigurationException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new configuration exception with the specified detail message and cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this exception or null if the cause is nonexistent or unknown.
 java.lang.String getMessage()
          Returns the detail message string of this configuration exception.
 void printStackTrace()
          Prints this MessageException and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this MessageException and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this MessageException and its backtrace to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationException

public ConfigurationException(java.lang.String message)
Constructs a new configuration exception with the specified detail message.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage() method.

ConfigurationException

public ConfigurationException(java.lang.String message,
                              java.lang.Throwable cause)
Constructs a new configuration exception with the specified detail message and cause.

Parameters:
message - the detail message (which is saved for later retrieval by the getMessage() method).
cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause of this exception or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this configuration exception to get thrown.)

Overrides:
getCause in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Returns the detail message string of this configuration exception.

Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Prints this MessageException and its backtrace to the standard error stream.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this MessageException and its backtrace to the specified print stream.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this MessageException and its backtrace to the specified print writer.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - PrintWriter to use for output


object XP, Inc. © 2000-2008. All rights reserved object XP