ErrorType

@objc
public enum ErrorType : Int

Enum representing different types of errors that can occur.

  • connection: Error related to establishing a connection.
  • request: Error related to the request being made.
  • serverError: Error returned by the server.
  • authentication: Error related to authentication.
  • unexpected: Unexpected error that is not covered by the other cases.
  • importError: Error related to importing documents.
  • Undocumented

    Declaration

    Swift

    case connection
  • Undocumented

    Declaration

    Swift

    case request
  • Undocumented

    Declaration

    Swift

    case serverError
  • Undocumented

    Declaration

    Swift

    case authentication
  • Undocumented

    Declaration

    Swift

    case unexpected
  • Undocumented

    Declaration

    Swift

    case importError
  • Initializes a new instance of the ErrorType enum based on the given GiniError.

    Declaration

    Swift

    public init(error: GiniError)

    Parameters

    error

    The GiniError to base the ErrorType on.