Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Parse/Internal/PFErrorUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ NS_ASSUME_NONNULL_BEGIN
@param code Parse Error Code
@param message Error description

@return Instance of `NSError` or `nil`.
@return `NSError` instance.
*/
+ (nullable NSError *)errorWithCode:(NSInteger)code message:(NSString *)message;
+ (nullable NSError *)errorWithCode:(NSInteger)code message:(NSString *)message shouldLog:(BOOL)shouldLog;
+ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message;
+ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message shouldLog:(BOOL)shouldLog;

/*!
Construct an error object from a result dictionary the API returned.
Expand All @@ -35,10 +35,10 @@ NS_ASSUME_NONNULL_BEGIN

@param result Network command result.

@return Instance of `NSError` or `nil`.
@return `NSError` instance.
*/
+ (nullable NSError *)errorFromResult:(NSDictionary *)result;
+ (nullable NSError *)errorFromResult:(NSDictionary *)result shouldLog:(BOOL)shouldLog;
+ (NSError *)errorFromResult:(NSDictionary *)result;
+ (NSError *)errorFromResult:(NSDictionary *)result shouldLog:(BOOL)shouldLog;

@end

Expand Down