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
NSError
objectWarning
This method doesn’t have any input, it generates dictionary based on current
NSError
object@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
NSError
object