TPCError

public enum TPCError : Error, Equatable
extension TPCError: LocalizedError

TPC errors.

Note

When error occurs and support is required, it is recommended to include the full error details including underlying errors in the report.

Since

1.4.0

  • The SDK is not configured. Ensure that TPCSDK.configure is called.“

    Declaration

    Swift

    case notConfigured
  • Invalid arguments. The argument(s) is nil or empty.

    Declaration

    Swift

    case invalidArgument(String)
  • Invalid format. The argument(s) couldn’t be read because it isn’t in the correct format

    Declaration

    Swift

    case invalidFormat(String)
  • The error occurs when an internal assertion fails and implies an unexpected condition within the called code.

    Declaration

    Swift

    case internalInconsistency(String)
  • The SDK receive error code from server.

    Declaration

    Swift

    case serverError(Int, String)
  • The feature is not supported. Check the message for reason.

    Declaration

    Swift

    case notSupported(String)
  • The device environment is potentially unsafe.

    Declaration

    Swift

    case deviceEnvironmentUnsafe(Int)
  • A description of the error encountered.

    Declaration

    Swift

    public var errorDescription: String? { get }
  • The recovery suggestion information to proceed.

    Declaration

    Swift

    public var recoverySuggestion: String? { get }