M8tyException

class M8tyException(val message: String, val code: String, val httpStatus: HttpStatus) : AbstractM8tyException

Represents the common exception of the m8ty system.

This exception can be used to throw any error via the API.

Parameters

message

The detail message explaining the exception.

code

The error code associated with the exception.

httpStatus

The HTTP status code associated with the exception.

Constructors

Link copied to clipboard
constructor(message: String, code: String, httpStatus: HttpStatus)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open override val code: String
Link copied to clipboard
open override val httpStatus: HttpStatus
Link copied to clipboard
open override val message: String