NSError(CLUNetworkAdditions)
@interface NSError (CLUNetworkAdditions)
NSError (CLUNetworkAdditions) category contains method to parse NSError properties and encode them into json like dictionary
To be able to include NSError properties into Clue report (mostly for Network module)
-
Generate error dictionary which includes error class name, code, domain, userInfo, localizedDescription and localizedFailureReason for current
NSErrorobjectWarning
This method doesn’t have any input, it generates dictionary based on current
NSErrorobject@code {
class
:, code
:, domain
:, userInfo
:, localizedDescription
:, localizedFailureReason
:} Declaration
Objective-C
- (NSDictionary *)clue_errorProperties;Swift
func clue_errorProperties() -> [AnyHashable : Any]!Return Value
Error dictionary with data from current
NSErrorobject
NSError(CLUNetworkAdditions) Category Reference