Class BmNotRunningException

  • All Implemented Interfaces:
    Serializable

    public final class BmNotRunningException
    extends RuntimeException
    The type of runtime exception that is thrown by BM facilities in case if the underlying engine is already shut down or not started yet.
    See Also:
    Serialized Form
    • Constructor Detail

      • BmNotRunningException

        public BmNotRunningException​(String engineId,
                                     EngineState engineState,
                                     String message,
                                     Throwable cause)
        Creates a new BM transaction exception.
        Parameters:
        engineId - The identifier of the engine, can't be null.
        engineState - The engine state at the moment of the exception, can't be null.
        message - the detail message, can be null.
        cause - the cause, can be null.
      • BmNotRunningException

        public BmNotRunningException​(String engineId,
                                     EngineState engineState,
                                     String message)
        Creates a new BM transaction exception.
        Parameters:
        engineId - The identifier of the engine, can't be null.
        engineState - The engine state at the moment of the exception, can't be null.
        message - the detail message, can be null.
      • BmNotRunningException

        public BmNotRunningException​(String engineId,
                                     EngineState engineState,
                                     Throwable cause)
        Creates a new BM transaction exception.
        Parameters:
        engineId - The identifier of the engine, can't be null.
        engineState - The engine state at the moment of the exception, can't be null.
        cause - the cause, can be null.
    • Method Detail

      • getEngineId

        public String getEngineId()
        Gets the engine identifier.
        Returns:
        The engine identifier, can't be null.
      • getEngineState

        public EngineState getEngineState()
        Gets the engine state.
        Returns:
        The state of the engine at the moment of the exception, can't be null.