errorPayload

fun errorPayload(message: String, code: Int): ErrorPayload

Creates an instance of ErrorPayload.

Throws

if the error code is a negative number.