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

FriendlyException

interface FriendlyException

In case of non-friendly exception developer will get a notification (most likely trough email) from production that something goes wrong. But this exception is expected by business logic. No signal should be sent to the developer.

User: Kirill, Date: 28.07.13 10:13

Inheritors

ControlUnitCommunicationJsonException

class ControlUnitCommunicationJsonException : JsonException, FriendlyException

When error has happened during transmission data.

ControlUnitReceiptJsonException

class ControlUnitReceiptJsonException : JsonDetailedException, FriendlyException

The details contains three fields:

ControlUnitUnavailableJsonException

class ControlUnitUnavailableJsonException : JsonException, FriendlyException

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

NotImplementedJsonException

class NotImplementedJsonException : JsonDetailedException, FriendlyException

Thrown by any method. Make sense to catch for com.srv4pos.server.api.auth.AuthService.handshake ()}. Happens usually for local servers: when android device is up to date, but server is not.

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