Class UsernameTakenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.example.blogs.app.api.user.exception.UsernameTakenException
All Implemented Interfaces:
Serializable

public class UsernameTakenException extends RuntimeException
Thrown when attempting to create a user with an already-existing username. Mapped to HTTP 409 CONFLICT.
See Also:
  • Constructor Details

    • UsernameTakenException

      public UsernameTakenException(Exception cause)
      Constructs a new UsernameTakenException with a default error message.
      Parameters:
      cause - the underlying cause of the exception