Class DuplicateKeyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.redwood.scheduler.infrastructure.exception.SchedulerRuntimeException
-
- com.redwood.scheduler.api.exception.SchedulerAPIRuntimeException
-
- com.redwood.scheduler.api.exception.DuplicateKeyException
-
- All Implemented Interfaces:
ExceptionData,Serializable
public class DuplicateKeyException extends SchedulerAPIRuntimeException
The database is in an inconsistent state, found a duplicate primary key.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDuplicateKeyException(String newErrorCode, String messageFormat, Throwable cause, Object[] exceptionDataEN, Object[] exceptionData)DuplicateKeyException(Throwable cause, String objectName, long keyValue)The database is in an inconsistent state, found a duplicate primary key.
-
Method Summary
-
Methods inherited from class com.redwood.scheduler.infrastructure.exception.SchedulerRuntimeException
bestException, getDefaultMessageFormat, getErrorCode, getExceptionData, getLocalizedMessage, getLocalizedMessage, getMessage, getTranslation, isSystemLoggable, skipException, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
DuplicateKeyException
protected DuplicateKeyException(String newErrorCode, String messageFormat, Throwable cause, Object[] exceptionDataEN, Object[] exceptionData)
-
DuplicateKeyException
public DuplicateKeyException(Throwable cause, String objectName, long keyValue)
The database is in an inconsistent state, found a duplicate primary key.- Parameters:
cause- The originating exception, null if this is the originating exceptionobjectName- The name of the objectkeyValue- The value of the key for which multiple objects were found
-
-