SudoEntitlementsError

public enum SudoEntitlementsError : Error, Equatable, LocalizedError

Errors that occur in SudoEntitlements.

Client

  • Configuration supplied to DefaultSudoEntitlementsClient is invalid.

    Declaration

    Swift

    case invalidConfig
  • User is not signed in.

    Declaration

    Swift

    case notSignedIn
  • The configuration related to Entitlements Service is not found in the provided configuration file This may indicate that the Entitlemetns Service is not deployed into your runtime instance or the configuration file that you are using is invalid..

    Declaration

    Swift

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

    Declaration

    Swift

    case accountLocked
  • 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 API call failed due to it exceeding some limits imposed for the API. For example, this error can occur if the vault size was too big.

    Declaration

    Swift

    case limitExceeded
  • 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 that an unexpected GraphQL error was returned by the service.

    Declaration

    Swift

    case graphQLError(cause: GraphQLError)
  • 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 SudoSecureVaultClient implementation.

    Declaration

    Swift

    case fatalError(_: String)

ApiOperationError

  • This section contains wrapped errors from ApiOperationError.

    Declaration

    Swift

    case ambiguousEntitlements
  • Declaration

    Swift

    public static func == (lhs: SudoEntitlementsError, rhs: SudoEntitlementsError) -> Bool

Lifecycle

  • Declaration

    Swift

    public var errorDescription: String? { get }