DDPError

public struct DDPError: ErrorType

A struct encapsulating a DDP error message

  • The string error code

    Declaration

    Swift

    public var error:String? { return json?["error"] as? String }                      // Error code
  • The detailed message given for an error returned from the server

    Declaration

    Swift

    public var reason:String? { return json?["reason"] as? String }
  • The string providing error details

    Declaration

    Swift

    public var details:String? { return json?["details"] as? String }
  • If the original message parsed properly, it is included here

    Declaration

    Swift

    public var offendingMessage:String? { return json?["offendingMessage"] as? String }