SRError.h 818 B

1234567891011121314151617181920
  1. //
  2. // Copyright (c) 2016-present, Facebook, Inc.
  3. // All rights reserved.
  4. //
  5. // This source code is licensed under the BSD-style license found in the
  6. // LICENSE file in the root directory of this source tree. An additional grant
  7. // of patent rights can be found in the PATENTS file in the same directory.
  8. //
  9. #import <Foundation/Foundation.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. extern NSError *SRErrorWithDomainCodeDescription(NSString *domain, NSInteger code, NSString *description);
  12. extern NSError *SRErrorWithCodeDescription(NSInteger code, NSString *description);
  13. extern NSError *SRErrorWithCodeDescriptionUnderlyingError(NSInteger code, NSString *description, NSError *underlyingError);
  14. extern NSError *SRHTTPErrorWithCodeDescription(NSInteger httpCode, NSInteger errorCode, NSString *description);
  15. NS_ASSUME_NONNULL_END