Class FlywayException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FlywayValidateException

public class FlywayException extends RuntimeException
Exception thrown when Flyway encounters a problem.
See Also:
  • Constructor Details

    • FlywayException

      public FlywayException(String message, Throwable cause, ErrorCode errorCode)
      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

      public FlywayException(String message, ErrorCode errorCode)
      Creates a new FlywayException with this message and error code
      Parameters:
      message - The exception message.
      errorCode - The error code.
    • FlywayException

      public FlywayException(String message, Throwable cause)
      Creates a new FlywayException with this message and this cause.
      Parameters:
      message - The exception message.
      cause - The exception cause.
    • FlywayException

      public FlywayException(Throwable cause)
      Creates a new FlywayException with this cause. For use in subclasses that override getMessage().
      Parameters:
      cause - The exception cause.
    • FlywayException

      public FlywayException(String message)
      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

      public ErrorCode getErrorCode()