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

public class DuplicatedAddressException extends RuntimeException
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 Details

    • DuplicatedAddressException

      public DuplicatedAddressException(String message)
      Constructs a new DuplicatedAddressException with the specified detail message.
      Parameters:
      message - the detail message explaining the cause of the exception