apidocs / com.srv4pos.server.api.exceptions / ServiceUnavailableJsonException

ServiceUnavailableJsonException

class ServiceUnavailableJsonException : JsonDetailedException

Dropped by the server if server is off (for instance server is restarting or in a service mode) or not ready.

Constructors

<init>

ServiceUnavailableJsonException()
ServiceUnavailableJsonException(code: ServiceUnavailableErrorType)

Properties

code

var code: ServiceUnavailableErrorType?

message

val message: String

Inherited Properties

details

var details: Map<String, String?>?

Sets exception details. For example, contains exception message or violated value.

Functions

deserialize

fun deserialize(jsonSource: String): JsonDetailedException

Performs deserialization. For serialization see JsonSerializable.serialize.

serialize

fun serialize(): String

Performs serialization. For deserialization see JsonSerializable.serialize.

Inherited Functions

toString

open fun toString(): String