Package org.ametys.core.migration
Class MigrationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ametys.core.migration.MigrationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotMigrableInSafeModeException
Exception that occured during an automatic migration
- See Also:
-
Constructor Summary
ConstructorDescriptionMigrationException
(String message) Constructs a new exception with the specified detail message.MigrationException
(String message, String causeMessage) Constructs a new exception with the specified detail message, associated with the initial failure cause.MigrationException
(String message, String causeMessage, Throwable cause, MigrationEngine.ActionData action) Constructs a new exception with the specified detail message and cause.MigrationException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.MigrationException
(Throwable cause) Constructs a new exception with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the failed action, if anyReturns the failure message, if any.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MigrationException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message.
-
MigrationException
Constructs a new exception with the specified detail message, associated with the initial failure cause.- Parameters:
message
- the detail message.causeMessage
- the failure message.
-
MigrationException
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- the cause.
-
MigrationException
public MigrationException(String message, String causeMessage, Throwable cause, MigrationEngine.ActionData action) Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message.causeMessage
- the failure message.cause
- the cause.action
- the failed action
-
MigrationException
Constructs a new exception with the specified cause.- Parameters:
cause
- the specified cause.
-
-
Method Details
-
getFailureMessage
Returns the failure message, if any.- Returns:
- the failure message
-
getFailedAction
Returns the failed action, if any- Returns:
- the failed action
-