io.github.jahrim.chess.authentication.service.components.exceptions.UsernameAlreadyTakenException.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of authentication-service Show documentation
Show all versions of authentication-service Show documentation
A service which handles registration and authentication in an application.
package io.github.jahrim.chess.authentication.service.components.exceptions
/**
* An [[AuthenticationServiceException]] triggered when a user attempts to
* sign in to the service with a username that is already taken.
*
* @param username the name of the user.
*/
class UsernameAlreadyTakenException(username: String)
extends AuthenticationServiceException(s"User '$username' already taken.")
© 2015 - 2024 Weber Informatics LLC | Privacy Policy