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

InconsistentDataJsonException

class InconsistentDataJsonException : JsonDetailedException

When data sent to the server is in inconsistent state. Exception is packed with unique code as com.srv4pos.server.api.infrastructure.exceptions.enums.InconsistentDataErrorType.

See additional details in InconsistentDataJsonException.getDetails by key 'message'.

Constructors

<init>

InconsistentDataJsonException()
InconsistentDataJsonException(message: String)
InconsistentDataJsonException(details: Map<String, String>?, code: InconsistentDataErrorType)

Properties

code

var code: InconsistentDataErrorType?

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): InconsistentDataJsonException

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