Error

protocol Error
  • Converts any Error into FHIRError; returns self if the receiver is a FHIRError already.

    Declaration

    Swift

    public var asFHIRError: FHIRError
  • Convenience getter to easily retrieve an OAuth2Error from any Error.

    Declaration

    Swift

    public var asOAuth2Error: OAuth2Error
  • Return a human-readable, localized string for error codes of the NSURLErrorDomain. Will simply return localizedDescription for if the receiver is not of that domain.

    The list of errors that are humanized is not necessarily exhaustive. All strings are returned fhir_localized.

    Declaration

    Swift

    public var humanized: String