public class MigrationException extends RuntimeException implements MigrationMessage
Note: Detail messages are displayed to the administrator on the console during a migration operation.
This code is experimental. While this class is functional and tested, it may change or be removed in a future version of the library.
Modifier | Constructor and Description |
---|---|
protected |
MigrationException(MigrationException error) |
|
MigrationException(String message)
Constructs a new migration exception with the specified detail message.
|
|
MigrationException(String format,
Object... args)
Constructs a new migration exception with the specified detail message to be formatted with the
specified parameters.
|
|
MigrationException(String message,
Throwable cause)
Constructs a new migration exception with the specified detail message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public MigrationException(String message)
Note: Detail messages are displayed to the administrator on the console during a migration operation.
message
- the detail message for this exceptionIllegalArgumentException
- if message
is null
public MigrationException(String format, @Nullable Object... args)
Note: Detail messages are displayed to the administrator on the console during a
migration operation. All Throwable
arguments are formatted using their Throwable.getMessage()
representation.
format
- the format string for the detail message for this exception (see String.format(java.lang.String, java.lang.Object...)
)args
- the arguments to the format message (if the last argument provided is a Throwable
it will automatically be initialized as the cause for the exception)IllegalArgumentException
- if format
is null
public MigrationException(String message, @Nullable Throwable cause)
Note: Detail messages are displayed to the administrator on the console during a migration operation.
message
- the detail message for this exceptioncause
- the cause for this exceptionIllegalArgumentException
- if message
is null
protected MigrationException(MigrationException error)
This work is licensed under a Creative Commons Attribution 4.0 International License.