Package org.flywaydb.core.api.callback
Interface Warning
public interface Warning
A warning that occurred while executing a statement.
Flyway Teams only
-
Method Summary
Modifier and TypeMethodDescriptionintgetCode()getState()booleanChecks whether this warning has already been handled.voidsetHandled(boolean handled, Configuration config) Sets whether this warning has already been handled.
-
Method Details
-
getCode
int getCode()- Returns:
- The warning code.
-
getState
String getState()- Returns:
- The warning state.
-
getMessage
String getMessage()- Returns:
- The warning message.
-
isHandled
boolean isHandled()Checks whether this warning has already been handled.- Returns:
truetrueif this warning has already be handled orfalseif it should flow via the default warning handler.
-
setHandled
Sets whether this warning has already been handled.- Parameters:
handled-trueif this warning has already be handled orfalseif it should flow via the default warning handler.
-