CLASS
Problem
Contents
- Properties
metadatamessageslinksrawJsonStringtitletype
- Methods
init(from:)encode(to:)isEqual(_:)
@objcMembers public class Problem: NSObject, ProblemRepresentation
Problem response indicates an error occurred on the server. Responses of this type obey the schema defined in RFC-7807 (Problem Details for HTTP APIs).
Properties
metadata
public let metadata: Metadata?
messages
public let messages: [UserMessage]
links
public let links: [Link]
rawJsonString
public let rawJsonString: String?
title
public let title: Message?
type
public let type: ProblemType
Methods
init(from:)
public required init(from decoder: Decoder) throws
Parameters
| Name | Description |
|---|---|
| decoder | The decoder to read data from. |
encode(to:)
public func encode(to encoder: Encoder) throws
Parameters
| Name | Description |
|---|---|
| encoder | The encoder to write data to. |
isEqual(_:)
override public func isEqual(_ object: Any?) -> Bool
Returns a Bool value that indicates whether the receiver and a given object are equal.