SimpleMDM-Swift Documentation

Enumeration Simple​MDMError

public enum SimpleMDMError: BaseSimpleMDMError  

Errors returned when misusing the SimpleMDM API.

%75 SimpleMDMError SimpleMDMError BaseSimpleMDMError BaseSimpleMDMError SimpleMDMError->BaseSimpleMDMError

Conforms To

BaseSimpleMDMError

Enumeration Cases

api​Key​Not​Set

case apiKeyNotSet

The SimpleMDM API key was not set before sending a request.

api​Key​Invalid

case apiKeyInvalid

The SimpleMDM API key was rejected by the server.

unknown

case unknown(httpCode: Int) 

The server responded with an unexpected HTTP response code.

generic

case generic(httpCode: Int, description: String) 

The server responded with an unexpected HTTP response code, and provided an error description.

does​Not​Exist

case doesNotExist

The requested resource does not exist.

unexpected​Resource​Id

case unexpectedResourceId

The id of the received resource did not match the id of the requested resource.

does​Not​Expect​More​Resources

case doesNotExpectMoreResources

The request returned an empty list of resources, but the pagination API indicated than more resources are available.

invalid​Limit

case invalidLimit(Int) 

The limit you provided when using the pagination API does not fit the bounds enforced by the server.

Properties

error​Description

public var errorDescription: String?  

A localized message describing what error occurred.