Interface Error


public interface Error
An error that occurred while executing a statement.

Flyway Teams only

  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
     
     
    boolean
    Checks whether this error has already been handled.
    void
    setHandled(boolean handled)
    Sets whether this error has already been handled.
  • Method Details

    • getCode

      int getCode()
      Returns:
      The error code.
    • getState

      String getState()
      Returns:
      The error state.
    • getMessage

      String getMessage()
      Returns:
      The error message.
    • isHandled

      boolean isHandled()
      Checks whether this error has already been handled.
      Returns:
      true true if this error has already be handled or false if it should flow via the default error handler.
    • setHandled

      void setHandled(boolean handled)
      Sets whether this error has already been handled.
      Parameters:
      handled - true if this error has already be handled or false if it should flow via the default error handler.