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 TypeMethodDescriptionint
getCode()
getState()
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 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.
-