ErrorType

struct ErrorType : Error

Struct that represents the error with a code and message.

  • This variable store the error code.

    Declaration

    Swift

    let code: String
  • This variable stores the error message.

    Declaration

    Swift

    let message: String