Package migratedb.v1.core.api
Class MigrateDbException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- migratedb.v1.core.api.MigrateDbException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DbMigrate.MigrateDbMigrateException,MigrateDbSqlException,MigrateDbUpgradeRequiredException,MigrateDbValidateException
public class MigrateDbException extends RuntimeException
Exception thrown when MigrateDB encounters a problem.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MigrateDbException()Creates a new MigrateDbException.MigrateDbException(String message)Creates a new MigrateDbException with this message.MigrateDbException(String message, Throwable cause)Creates a new MigrateDbException with this message and this cause.MigrateDbException(String message, Throwable cause, ErrorCode errorCode)Creates a new MigrateDbException with this message, cause, and error code.MigrateDbException(String message, ErrorCode errorCode)Creates a new MigrateDbException with this message and error codeMigrateDbException(Throwable cause)Creates a new MigrateDbException with this cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodegetErrorCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MigrateDbException
public MigrateDbException(String message, Throwable cause, ErrorCode errorCode)
Creates a new MigrateDbException with this message, cause, and error code.- Parameters:
message- The exception message.cause- The exception cause.errorCode- The error code.
-
MigrateDbException
public MigrateDbException(String message, ErrorCode errorCode)
Creates a new MigrateDbException with this message and error code- Parameters:
message- The exception message.errorCode- The error code.
-
MigrateDbException
public MigrateDbException(String message, Throwable cause)
Creates a new MigrateDbException with this message and this cause.- Parameters:
message- The exception message.cause- The exception cause.
-
MigrateDbException
public MigrateDbException(Throwable cause)
Creates a new MigrateDbException with this cause. For use in subclasses that override getMessage().- Parameters:
cause- The exception cause.
-
MigrateDbException
public MigrateDbException(String message)
Creates a new MigrateDbException with this message.- Parameters:
message- The exception message.
-
MigrateDbException
public MigrateDbException()
Creates a new MigrateDbException. For use in subclasses that override getMessage().
-
-
Method Detail
-
getErrorCode
public ErrorCode getErrorCode()
-
-