com.metamatrix.common.config
Class StartupStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.metamatrix.core.MetaMatrixCoreException
              extended by com.metamatrix.api.exception.MetaMatrixException
                  extended by com.metamatrix.common.config.StartupStateException
All Implemented Interfaces:
java.io.Serializable

public final class StartupStateException
extends MetaMatrixException

This exception is thrown by StartupStateController, to indicate to a calling MetaMatrixController that the system is not in a state in which initialization can proceed.

See Also:
Serialized Form

Constructor Summary
StartupStateException()
          No-arg costructor required by Externalizable semantics
StartupStateException(int desiredStartupState, int startupState)
          Construct this exception with a default message, which will include the current startup state and the desired startup state parameters, explaining that the desired state cannot be reached.
StartupStateException(java.lang.String message, int startupState)
          Construct this exception with a message, and the system state.
 
Method Summary
 int getStartupState()
          Use the constants in StartupStateController to interpret the system state from the returned int.
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class com.metamatrix.api.exception.MetaMatrixException
getChild, getCode, getFullMessage, getMessage, setCode, toString
 
Methods inherited from class com.metamatrix.core.MetaMatrixCoreException
getCause, initCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartupStateException

public StartupStateException()
No-arg costructor required by Externalizable semantics


StartupStateException

public StartupStateException(java.lang.String message,
                             int startupState)
Construct this exception with a message, and the system state.


StartupStateException

public StartupStateException(int desiredStartupState,
                             int startupState)
Construct this exception with a default message, which will include the current startup state and the desired startup state parameters, explaining that the desired state cannot be reached.

Method Detail

getStartupState

public int getStartupState()
Use the constants in StartupStateController to interpret the system state from the returned int.

Returns:
int indicating system startup state

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Overrides:
readExternal in class MetaMatrixException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
See Also:
Externalizable.readExternal(java.io.ObjectInput)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Overrides:
writeExternal in class MetaMatrixException
Throws:
java.io.IOException
See Also:
Externalizable.writeExternal(java.io.ObjectOutput)


Copyright © 2009. All Rights Reserved.