Package org.flywaydb.core.api.callback
Interface Error
public interface Error
An error that occurred while executing a statement.
Flyway Teams only
-
Method Summary
Modifier and TypeMethodDescriptionintgetCode()getState()booleanChecks whether this error has already been handled.voidsetHandled(boolean handled, Configuration config) 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:
truetrueif this error has already be handled orfalseif it should flow via the default error handler.
-
setHandled
Sets whether this error has already been handled.- Parameters:
handled-trueif this error has already be handled orfalseif it should flow via the default error handler.
-