Package liquibase.exception
Class UnexpectedLiquibaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- liquibase.exception.UnexpectedLiquibaseException
-
- All Implemented Interfaces:
Serializable
,ExitCodeException
- Direct Known Subclasses:
UnknownChangeLogParameterException
,UnknownConfigurationType
public class UnexpectedLiquibaseException extends RuntimeException implements ExitCodeException
Marks an internal error (runtime exception) that prevents this software from further processing. Should only be thrown in "impossible" cases where the software suspects a bug in itself.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedLiquibaseException(String message)
Constructs a newUnexpectedLiquibaseException
with the given messageUnexpectedLiquibaseException(String message, Throwable cause)
Constructs a newUnexpectedLiquibaseException
with the given message and adds information about theThrowable
cause of the problem.UnexpectedLiquibaseException(Throwable cause)
Constructs a newUnexpectedLiquibaseException
from aThrowable
event.UnexpectedLiquibaseException(Throwable cause, int exitCode)
Constructs a newUnexpectedLiquibaseException
from aThrowable
event.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface liquibase.exception.ExitCodeException
getExitCode
-
-
-
-
Constructor Detail
-
UnexpectedLiquibaseException
public UnexpectedLiquibaseException(String message)
Constructs a newUnexpectedLiquibaseException
with the given message- Parameters:
message
- a message describing what should never have happened
-
UnexpectedLiquibaseException
public UnexpectedLiquibaseException(String message, Throwable cause)
Constructs a newUnexpectedLiquibaseException
with the given message and adds information about theThrowable
cause of the problem.- Parameters:
message
- a message describing what should never have happenedcause
- TheThrowable
event that should never have happened
-
UnexpectedLiquibaseException
public UnexpectedLiquibaseException(Throwable cause)
Constructs a newUnexpectedLiquibaseException
from aThrowable
event.- Parameters:
cause
- TheThrowable
event that should never have happened
-
UnexpectedLiquibaseException
public UnexpectedLiquibaseException(Throwable cause, int exitCode)
Constructs a newUnexpectedLiquibaseException
from aThrowable
event.- Parameters:
cause
- TheThrowable
event that should never have happened
-
-