ErrorResponse

@JsonClass(generateAdapter = true)
data class ErrorResponse(val message: String, val errors: Map<String, List<String>>?)

Data class representing an ErrorResponse.

Constructors

Link copied to clipboard
constructor(message: String, errors: Map<String, List<String>>?)

Types

Link copied to clipboard
class ErrorThrowable(val message: String, val errors: Map<String, List<String>>?) : Throwable

Exception class for wrapping ErrorResponse as a Throwable.

Properties

Link copied to clipboard

An optional map containing lists of error messages, keyed by error types or categories.

Link copied to clipboard

The error message associated with the response.

Link copied to clipboard

Returns the ErrorResponse as a Throwable object