Disruptive Documentation

Enumeration Disruptive​Error

public enum DisruptiveError: Error  

An enumeration of all the possible errors that could occur by calling one of the endpoints.

%179 DisruptiveError DisruptiveError Error Error DisruptiveError->Error

Conforms To

Error

Enumeration Cases

server​Unavailable

case serverUnavailable

Could not reach the server. Either the client is not connected to the internet, or the server is currently offline.

server​Error

case serverError

Something went wrong on the server. This error comes from a 500, 503, or 504 status code.

bad​Request

case badRequest

Something went wrong with parsing the request on the server. This error comes from a 400 status code.

unauthorized

case unauthorized

Either the client is not properly authorized, or the access token has expired. This error comes from a 401 status code.

insufficient​Permissions

case insufficientPermissions

You attempted to access a resource that you don't have access to. This error comes from either a 403 status code.

not​Found

case notFound

You attempted to access a resource that you either don't have access to, or doesn't exist. This error comes from either a 403 or a 404 status code.

resource​Already​Exists

case resourceAlreadyExists

You likely tried to create a resource that already exists. This error comes from a 409 status code.

unknown​Error

case unknownError

Something unexpected happened that could not be recovered from. Check the logs for more information

logged​Out

case loggedOut

Returned when the authenticator is currently logged out. Call login() on the authenticator to log it back in.