Class DuplicateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.glowmart.shop_management.exception.DuplicateException
- All Implemented Interfaces:
Serializable
Exception thrown when a duplicate resource or entity is encountered.
This exception is annotated with ResponseStatus to automatically
return an HTTP 409 (Conflict) status code when thrown in a Spring
web application.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicateException(String message) Constructs a newDuplicateExceptionwith the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateException
Constructs a newDuplicateExceptionwith the specified detail message.- Parameters:
message- the detail message that explains the reason for the exception
-