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

ForbiddenJsonException

class ForbiddenJsonException : JsonDetailedException

When service returns 403 HTTP status code. For instance if one seller is trying to access data of another seller. Or seller is trying to reach data available for admins only.

User: Kirill, Date: 21.09.13 12:03

Constructors

<init>

ForbiddenJsonException()

Restrain to use parameterless constructor, use overloaded instead. This one is used only for serealization/deserealization processes.

ForbiddenJsonException(message: String)
ForbiddenJsonException(code: ForbiddenErrorType)
ForbiddenJsonException(code: ForbiddenErrorType, message: String)

Properties

code

var code: ForbiddenErrorType?

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