com.sleepycat.je
Class EnvironmentFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sleepycat.je.DatabaseException
                  extended by com.sleepycat.je.RunRecoveryException
                      extended by com.sleepycat.je.EnvironmentFailureException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EnvironmentLockedException, EnvironmentNotFoundException, GroupShutdownException, LogWriteException, RestartRequiredException, ThreadInterruptedException, VersionMismatchException

public class EnvironmentFailureException
extends RunRecoveryException

See Also:
Serialized Form

Constructor Summary
  EnvironmentFailureException(EnvironmentImpl envImpl, EnvironmentFailureReason reason)
          For internal use only.
  EnvironmentFailureException(EnvironmentImpl envImpl, EnvironmentFailureReason reason, String message)
          For internal use only.
  EnvironmentFailureException(EnvironmentImpl envImpl, EnvironmentFailureReason reason, String message, Throwable cause)
          For internal use only.
  EnvironmentFailureException(EnvironmentImpl envImpl, EnvironmentFailureReason reason, Throwable cause)
          For internal use only.
protected EnvironmentFailureException(String message, EnvironmentFailureException cause)
          For internal use only.
 
Method Summary
 String getMessage()
           
 EnvironmentFailureReason getReason()
          For internal use only.
static EnvironmentFailureException makeJavaErrorWrapper()
          For internal use only.
static EnvironmentFailureException promote(EnvironmentImpl envImpl, EnvironmentFailureReason reason, String message, Throwable cause)
          For internal use only.
 void setAlreadyThrown(boolean alreadyThrown)
          For internal use only.
static EnvironmentFailureException unexpectedException(EnvironmentImpl envImpl, Exception cause)
          For internal use only.
static EnvironmentFailureException unexpectedException(EnvironmentImpl envImpl, String message, Exception cause)
          For internal use only.
static EnvironmentFailureException unexpectedException(Exception cause)
          For internal use only.
static EnvironmentFailureException unexpectedException(String message, Exception cause)
          For internal use only.
static EnvironmentFailureException unexpectedState()
          For internal use only.
static EnvironmentFailureException unexpectedState(EnvironmentImpl envImpl)
          For internal use only.
static EnvironmentFailureException unexpectedState(EnvironmentImpl envImpl, String message)
          For internal use only.
static EnvironmentFailureException unexpectedState(String message)
          For internal use only.
 EnvironmentFailureException wrapSelf(String msg)
          For internal use only.
 
Methods inherited from class com.sleepycat.je.DatabaseException
addErrorMessage, getVersionHeader
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnvironmentFailureException

public EnvironmentFailureException(EnvironmentImpl envImpl,
                                   EnvironmentFailureReason reason)
For internal use only.


EnvironmentFailureException

public EnvironmentFailureException(EnvironmentImpl envImpl,
                                   EnvironmentFailureReason reason,
                                   Throwable cause)
For internal use only.


EnvironmentFailureException

public EnvironmentFailureException(EnvironmentImpl envImpl,
                                   EnvironmentFailureReason reason,
                                   String message)
For internal use only.


EnvironmentFailureException

public EnvironmentFailureException(EnvironmentImpl envImpl,
                                   EnvironmentFailureReason reason,
                                   String message,
                                   Throwable cause)
For internal use only.


EnvironmentFailureException

protected EnvironmentFailureException(String message,
                                      EnvironmentFailureException cause)
For internal use only.

Method Detail

wrapSelf

public EnvironmentFailureException wrapSelf(String msg)
For internal use only.


setAlreadyThrown

public void setAlreadyThrown(boolean alreadyThrown)
For internal use only.


getMessage

public String getMessage()
Overrides:
getMessage in class DatabaseException

getReason

public EnvironmentFailureReason getReason()
For internal use only.


makeJavaErrorWrapper

public static EnvironmentFailureException makeJavaErrorWrapper()
For internal use only.


promote

public static EnvironmentFailureException promote(EnvironmentImpl envImpl,
                                                  EnvironmentFailureReason reason,
                                                  String message,
                                                  Throwable cause)
For internal use only.

Returns:
the resulting EnvironmentFailureException.

unexpectedException

public static EnvironmentFailureException unexpectedException(Exception cause)
For internal use only.


unexpectedException

public static EnvironmentFailureException unexpectedException(EnvironmentImpl envImpl,
                                                              Exception cause)
For internal use only.


unexpectedException

public static EnvironmentFailureException unexpectedException(String message,
                                                              Exception cause)
For internal use only.


unexpectedException

public static EnvironmentFailureException unexpectedException(EnvironmentImpl envImpl,
                                                              String message,
                                                              Exception cause)
For internal use only.


unexpectedState

public static EnvironmentFailureException unexpectedState()
For internal use only.


unexpectedState

public static EnvironmentFailureException unexpectedState(EnvironmentImpl envImpl)
For internal use only.


unexpectedState

public static EnvironmentFailureException unexpectedState(String message)
For internal use only.


unexpectedState

public static EnvironmentFailureException unexpectedState(EnvironmentImpl envImpl,
                                                          String message)
For internal use only.



Copyright (c) 2004-2010 Oracle. All rights reserved.