Class DuplicateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.getelements.elements.sdk.model.exception.BaseException
dev.getelements.elements.sdk.model.exception.DuplicateException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DuplicateDeploymentException
Thrown when a duplicate resource already exists.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.DuplicateException(String message) Creates a new instance with the given message.DuplicateException(String message, Throwable cause) Creates a new instance with the given message and cause.DuplicateException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance.DuplicateException(Throwable cause) Creates a new instance with the given cause. -
Method Summary
Methods inherited from class dev.getelements.elements.sdk.model.exception.BaseException
forceFillInStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateException
public DuplicateException()Creates a new instance. -
DuplicateException
Creates a new instance with the given message.- Parameters:
message- the detail message
-
DuplicateException
Creates a new instance with the given message and cause.- Parameters:
message- the detail messagecause- the cause
-
DuplicateException
Creates a new instance with the given cause.- Parameters:
cause- the cause
-
DuplicateException
public DuplicateException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance.- Parameters:
message- the detail messagecause- the causeenableSuppression- whether suppression is enabledwritableStackTrace- whether the stack trace is writable
-
-
Method Details
-
getCode
Description copied from class:BaseExceptionGets the error code.- Specified by:
getCodein classBaseException- Returns:
- the
ErrorCode
-