ErrorNotification

data class ErrorNotification @JvmOverloads constructor(jobID: HashID, code: Int, message: String?) : JsonSerializable

Job Error Notification

Parameters

jobID

Hash ID of the job that failed.

code

Error/response code of the job failure.

If the error has no associated code, set this value to 0.

message

Optional error message for the job failure.

Constructors

Link copied to clipboard
fun ErrorNotification(jobID: HashID, code: Int, message: String? = null)

Constructs a new ErrorNotification instance.

Types

Link copied to clipboard
object Companion : JsonDeserializable<ObjectNode, ErrorNotification>

Functions

Link copied to clipboard
open override fun toJson(): JsonNode

Converts the parent instance into a JSON node.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val code: Int
Link copied to clipboard
val jobID: HashID
Link copied to clipboard
val message: String? = null