Package org.flywaydb.core.api.callback
Interface Error
-
public interface ErrorAn error that occurred while executing a statement.Flyway Pro and Flyway Enterprise only
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCode()StringgetMessage()StringgetState()booleanisHandled()Checks whether this error has already been handled.voidsetHandled(boolean handled)Sets whether this error has already been handled.
-
-
-
Method Detail
-
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
void setHandled(boolean handled)
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.
-
-