UserIssue

@Serializable
sealed class UserIssue : Issue

Common issue for user-related errors.

Inheritors

Types

Link copied to clipboard
@Serializable
data class AlreadyExists(val conflict: UserIssue.ConflictType = ConflictType.UNKNOWN, val status: Int = 400) : UserIssue
Link copied to clipboard

Types of conflicts that can occur during user creation or update.

Link copied to clipboard
@Serializable
data class InvalidUser(val usernameIssues: List<String> = emptyList(), val passwordIssues: List<String> = emptyList(), val status: Int = 400) : UserIssue
Link copied to clipboard
@Serializable
data class NotFound(val message: String = "User not found", val status: Int = 404) : UserIssue

Properties

Link copied to clipboard
abstract val message: String

The error message.

Link copied to clipboard
abstract val status: Int

The HTTP status code. Should be something supported by http4k.