Class DuplicatedAddressException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.fiap.tech_challenge.parte1.ms_users.exceptions.DuplicatedAddressException
- All Implemented Interfaces:
Serializable
Exception thrown when an attempt is made to add or register an address
that already exists (i.e., a duplicate address) in the system.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicatedAddressException
(String message) Constructs a new DuplicatedAddressException with 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
-
DuplicatedAddressException
Constructs a new DuplicatedAddressException with the specified detail message.- Parameters:
message
- the detail message explaining the cause of the exception
-