Interface Warning


  • public interface Warning
    A warning that occurred while executing a statement.

    Flyway Pro and Flyway Enterprise only

    • Method Summary

      Modifier and Type Method Description
      int getCode()  
      java.lang.String getMessage()  
      java.lang.String getState()  
      boolean isHandled()
      Checks whether this warning has already been handled.
      void setHandled​(boolean handled)
      Sets whether this warning has already been handled.
    • Method Detail

      • getCode

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

        java.lang.String getState()
        Returns:
        The warning state.
      • getMessage

        java.lang.String getMessage()
        Returns:
        The warning message.
      • isHandled

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

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