SudoProfilesClientError

public enum SudoProfilesClientError : Error

List of possible errors thrown by SudoProfilesClient implementation.

  • sudoServiceConfigNotFound: Indicates the configuration related to Sudo Service is not found. This may indicate that Sudo Service is not deployed into your runtime instance or the config file that you are using is invalid..
  • invalidInput: Indicates that the input to the API was invalid.
  • notSignedIn: Indicates the API being called requires the client to sign in.
  • badData: Indicates the bad data was found in cache or in backend response.
  • graphQLError: Indicates that a GraphQL error was returned by the backend.
  • fatalError: Indicates that a fatal error occurred. This could be due to coding error, out-of-memory condition or other conditions that is beyond control of SudoProfilesClient implementation.
  • Indicates that the configuration dictionary passed to initialize the client was not valid.

    Declaration

    Swift

    case invalidConfig
  • Indicates the configuration related to Sudo Service is not found. This may indicate that Sudo Service is not deployed into your runtime instance or the config file that you are using is invalid..

    Declaration

    Swift

    case sudoServiceConfigNotFound
  • Indicates that the input to the API was invalid.

    Declaration

    Swift

    case invalidInput
  • Indicates the requested operation failed because the user account is locked.

    Declaration

    Swift

    case accountLocked
  • Indicates the API being called requires the client to sign in.

    Declaration

    Swift

    case notSignedIn
  • Indicates that the request operation failed due to authorization error. This maybe due to the authentication token being invalid or other security controls that prevent the user from accessing the API.

    Declaration

    Swift

    case notAuthorized
  • Indicates that the user does not have sufficient entitlements to perform the requested operation.

    Declaration

    Swift

    case insufficientEntitlements
  • Indicates the version of the Sudo that is getting updated does not match the current version of the Sudo stored in the backend. The caller should retrieve the current version of the Sudo and reconcile the difference..

    Declaration

    Swift

    case versionMismatch
  • Indicates that an internal server error caused the operation to fail. The error is possibly transient and retrying at a later time may cause the operation to complete successfully

    Declaration

    Swift

    case serviceError
  • Indicates that the request failed due to connectivity, availability or access error.

    Declaration

    Swift

    case requestFailed(response: HTTPURLResponse?, cause: Error?)
  • Indicates that there were too many attempts at sending API requests within a short period of time.

    Declaration

    Swift

    case rateLimitExceeded
  • Indicates the bad data was found in cache or in backend response.

    Declaration

    Swift

    case badData
  • Indicates the specified Sudo was not found.

    Declaration

    Swift

    case sudoNotFound
  • Indicates that a GraphQL error was returned by the backend.

    Declaration

    Swift

    case graphQLError(description: String)
  • Indicates that a fatal error occurred. This could be due to coding error, out-of-memory condition or other conditions that is beyond control of SudoProfilesClient implementation.

    Declaration

    Swift

    case fatalError(description: String)