LUAPIError Class Reference
| Inherits from | LUAPIModel : NSObject | 
| Declared in | LUAPIError.h LUAPIError.m  | 
Overview
If an API request returns an error, the response may include one or more LUAPIError objects.
These will be included within the userInfo of the NSError returned by a network request.
An error will have a message, and may have an object and property. These latter two
properties are useful for validation errors. For example, if a user attempts to register without
providing an email address, the object would be “user” and the property would be “email”.
Properties
code
A machine-readable description of the error (can be nil).
@property (nonatomic, copy, readonly) NSString *codeDiscussion
A machine-readable description of the error (can be nil).
Declared In
LUAPIError.hmessage
A human-readable description of the error.
@property (nonatomic, copy, readonly) NSString *messageDiscussion
A human-readable description of the error.
Declared In
LUAPIError.hobject
A description of the object to which the error refers, such as “user” or “location”. This can be useful to distinguish validation errors within nested objects.
@property (nonatomic, copy, readonly) NSString *objectDiscussion
A description of the object to which the error refers, such as “user” or “location”. This can be useful to distinguish validation errors within nested objects.
Declared In
LUAPIError.hproperty
The property to which the error refers. This is typically used for validation errors. For example, if a user attempts to register without providing an email address, the object would be “user” and the property would be “email”.
@property (nonatomic, copy, readonly) NSString *propertyDiscussion
The property to which the error refers. This is typically used for validation errors. For example, if a user attempts to register without providing an email address, the object would be “user” and the property would be “email”.
Declared In
LUAPIError.h