Package org.flywaydb.core.api
Class FlywayException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.flywaydb.core.api.FlywayException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FlywayValidateException
Exception thrown when Flyway encounters a problem.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new FlywayException.FlywayException
(String message) Creates a new FlywayException with this message.FlywayException
(String message, Throwable cause) Creates a new FlywayException with this message and this cause.FlywayException
(String message, Throwable cause, ErrorCode errorCode) Creates a new FlywayException with this message, cause, and error code.FlywayException
(String message, ErrorCode errorCode) Creates a new FlywayException with this message and error codeFlywayException
(Throwable cause) Creates a new FlywayException with this cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlywayException
Creates a new FlywayException with this message, cause, and error code.- Parameters:
message
- The exception message.cause
- The exception cause.errorCode
- The error code.
-
FlywayException
Creates a new FlywayException with this message and error code- Parameters:
message
- The exception message.errorCode
- The error code.
-
FlywayException
Creates a new FlywayException with this message and this cause.- Parameters:
message
- The exception message.cause
- The exception cause.
-
FlywayException
Creates a new FlywayException with this cause. For use in subclasses that override getMessage().- Parameters:
cause
- The exception cause.
-
FlywayException
Creates a new FlywayException with this message.- Parameters:
message
- The exception message.
-
FlywayException
public FlywayException()Creates a new FlywayException. For use in subclasses that override getMessage().
-
-
Method Details
-
getErrorCode
-