19 #import <Foundation/Foundation.h>
23 NS_ASSUME_NONNULL_BEGIN
37 underlyingError:(nullable NSError *)underlyingError
38 description:(nullable NSString *)description;
49 + (NSError *)OAuthErrorWithDomain:(NSString *)OAuthErrorDomain
50 OAuthResponse:(NSDictionary *)errorResponse
51 underlyingError:(nullable NSError *)underlyingError;
60 + (NSError *)resourceServerAuthorizationErrorWithCode:(NSInteger)code
61 errorResponse:(nullable NSDictionary *)errorResponse
62 underlyingError:(nullable NSError *)underlyingError;
73 + (NSError *)HTTPErrorWithHTTPResponse:(NSHTTPURLResponse *)HTTPURLResponse
74 data:(nullable NSData *)data;
79 + (void)raiseException:(NSString *)name;
85 + (void)raiseException:(NSString *)name message:(NSString *)message;
103 + (BOOL)isOAuthErrorDomain:(NSString*)errorDomain;
107 NS_ASSUME_NONNULL_END