ErrorResponse

open class ErrorResponse: ObjectBase

Encapsulates an OData error response.

  • A service-defined code for the error.

    Declaration

    Swift

    final public var code: String = ""
  • A human-readable, language-dependent message describing the error.

    Declaration

    Swift

    final public var message: String = ""
  • Optionally indicates an RFC 5646 language code for the error message.

    Declaration

    Swift

    final public var language: String?
  • Optionally indicates the target of the error.

    Declaration

    Swift

    final public var target: String?
  • Optional additional details about the error.

    Declaration

    Swift

    final public var details: ErrorResponseList = ErrorResponseList()
  • Optional service specific debugging information that might assist a service implementer in determining the cause of an error. This would not usually be returned by a production service. The service might need to be configured in a test or debug mode before it will return inner error information.

    Declaration

    Swift

    final public var innerDetails: String?
  • Default initializer.

    Declaration

    Swift

    override public init()