RuntimeErrorEvent.h 925 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // RuntimeErrorEvent.h
  3. // CardinalEMVCoSDK
  4. //
  5. // Copyright © 2018 Cardinal Commerce. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. /**
  9. * The RuntimeErrorEvent class holds details of run-time errors that are encountered by the 3DS SDK during authentication.
  10. */
  11. @interface RuntimeErrorEvent : NSObject
  12. @property (nonatomic, strong, nonnull, readonly) NSString* errorCode;
  13. @property (nonatomic, strong, nonnull, readonly) NSString* errorMessage;
  14. - (id _Nonnull ) initWithErrorCode: (nonnull NSString *) errorCode
  15. errorMessage: (nonnull NSString *) errorMessage;
  16. /**
  17. * Returns the implementer-specific error code.
  18. * @return NSString
  19. */
  20. - (nonnull NSString *) getErrorCode;
  21. /**
  22. * Returns details about the error.
  23. * @return NSString
  24. */
  25. - (nonnull NSString *) getErrorMessage;
  26. + (instancetype _Nonnull )new NS_UNAVAILABLE;
  27. - (instancetype _Nonnull )init NS_UNAVAILABLE;
  28. @end