apidocs / com.srv4pos.server.api.exceptions.base / JsonException

JsonException

abstract class JsonException : RuntimeException, JsonSerializable, JsonDeserializable<JsonException>

Parent of all exceptions for server-api. User: Kirill Date: 05.07.13 15:30

Constructors

<init>

JsonException()
JsonException(responseCode: Int)

Properties

exceptionName

val exceptionName: String

message

open val message: String

responseCode

var responseCode: Int

Functions

deserialize

open fun deserialize(jsonSource: String): JsonException

Performs deserialization. For serialization see JsonSerializable.serialize.

serialize

open fun serialize(): String

Performs serialization. For deserialization see JsonSerializable.serialize.

Inheritors

ConcurrentModificationJsonException

class ConcurrentModificationJsonException : JsonException

Created by fasth on 14.10.2014.

ControlUnitCommunicationJsonException

class ControlUnitCommunicationJsonException : JsonException, FriendlyException

When error has happened during transmission data.

ControlUnitUnavailableJsonException

class ControlUnitUnavailableJsonException : JsonException, FriendlyException

When server is unable to reach the control unit device (for instance it's ejected from the server).

InvalidETagFormatJsonException

class InvalidETagFormatJsonException : JsonException

Occurs when provided ETag format is not a quoted string with version inside. Created by fasth on 14.08.14.

JsonDetailedException

abstract class JsonDetailedException : JsonException

Parent for detailed exceptions.

NotFoundJsonException

class NotFoundJsonException : JsonException

When service returns 404 HTTP status code.

OutdatedVersionJsonException

class OutdatedVersionJsonException : JsonException, FriendlyException

Means that server doesn't support the version at all, you have to update your app as soon as possible. User: Kirill Date: 23.07.13 15:02

RequestEntityTooLargeJsonException

class RequestEntityTooLargeJsonException : JsonException

ValueNotValidJsonException

class ValueNotValidJsonException : JsonException

Thrown when some value of field fails validation. See com.srv4pos.server.api.exceptions.ValueNotValidJsonExceptionDetails for details. One field can have one or more violations.

VersionConflictJsonException

class VersionConflictJsonException : JsonException

Occurs when we upload data to the server but server contains more fresh data than we send.