Package org.flywaydb.core.api.callback
Interface Error
-
public interface Error
An error that occurred while executing a statement.Flyway Teams only
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCode()
java.lang.String
getMessage()
java.lang.String
getState()
boolean
isHandled()
Checks whether this error has already been handled.void
setHandled(boolean handled)
Sets whether this error has already been handled.
-
-
-
Method Detail
-
getCode
int getCode()
- Returns:
- The error code.
-
getState
java.lang.String getState()
- Returns:
- The error state.
-
getMessage
java.lang.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 orfalse
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 orfalse
if it should flow via the default error handler.
-
-