Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //known server errors
- builder.RegisterInstance(new Dictionary<string, Type>()
- {
- {"E_SESSION_EXPIRED", typeof(SessionExpiredException)},
- {"E_SOCIAL_NOT_AUTHORIZED", typeof(SocialAuthenticationException)},
- {"E_SOCIAL_AUTHENTICATION_FAILED", typeof(SocialAuthenticationException)},
- {"E_AUTHORIZATION_KEY_NOT_FOUND", typeof(AuthorizationKeyNotFoundException)},
- {"E_PAYMENT_OPTION_UNAVALABLE", typeof(StartPaymentTransactionException)},
- {"E_UNKNOWN_PURCHASE_PLATFORM", typeof(FinishPaymentTransactionException)},
- {"E_TRANSACTION_NOT_FOUND", typeof(FinishPaymentTransactionException)},
- {"E_INCORRECT_PRODUCT", typeof(FinishPaymentTransactionException)},
- {"E_INCORRECT_PURCHASE_DATA", typeof(FinishPaymentTransactionException)},
- {"E_VERIFY_LATER", typeof(VerifyTransactionLaterException)},
- {"E_DIFFERENT_SOCIAL_ID", typeof(DifferentSocialIdException)},
- //{"E_PAYMENT_PAGE_MISSING", typeof(PaymentPageMissingException)},
- }).As<Dictionary<string, Type>>();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement