PPOTError.h 560 B

1234567891011121314151617181920212223242526
  1. //
  2. // PPOTError.h
  3. // PayPalOneTouch
  4. //
  5. // Copyright © 2015 PayPal, Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "PPOTCore.h"
  9. @interface PPOTError : NSObject
  10. /**
  11. @param errorCode the error code to use
  12. @return NSError with the code given
  13. */
  14. + (NSError *)errorWithErrorCode:(PPOTErrorCode)errorCode;
  15. /**
  16. @param errorCode the error code to use
  17. @param userInfo the error's info dictionary
  18. @return NSError with the code given
  19. */
  20. + (NSError *)errorWithErrorCode:(PPOTErrorCode)errorCode userInfo:(NSDictionary *)userInfo;
  21. @end