SAPcpmsDestinationsError

public enum SAPcpmsDestinationsError : Error

Enum covering all errors occuring in the SAPcpmsDestinations.

  • The server response is not a valid HTTPURLResponse

    Declaration

    Swift

    case invalidServerResponse
  • Status code of response is not the expected.

    Declaration

    Swift

    case invalidHTTPStatus(statusCode: Int)
  • Values requested from the payload are corrupted, or if the given data is not valid JSON.

    Declaration

    Swift

    case decodingFailed(error: Error)
  • The given value is not conform to the accepted type (parse issue: missing a necessary key or the type is invalid).

    Declaration

    Swift

    case malformed(type: MalformedType, description: String)
  • The malformed error could have different type

    See more

    Declaration

    Swift

    public enum MalformedType
  • A localized message description.

    Declaration

    Swift

    public var description: String { get }
  • A localized message describing the debug information.

    Declaration

    Swift

    public var debugDescription: String { get }
  • A localized message describing what error occurred.

    Declaration

    Swift

    public var errorDescription: String? { get }
  • A localized message describing the reason for the failure.

    Declaration

    Swift

    public var failureReason: String? { get }