Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. //known server errors
  2. builder.RegisterInstance(new Dictionary<string, Type>()
  3. {
  4. {"E_SESSION_EXPIRED", typeof(SessionExpiredException)},
  5. {"E_SOCIAL_NOT_AUTHORIZED", typeof(SocialAuthenticationException)},
  6. {"E_SOCIAL_AUTHENTICATION_FAILED", typeof(SocialAuthenticationException)},
  7. {"E_AUTHORIZATION_KEY_NOT_FOUND", typeof(AuthorizationKeyNotFoundException)},
  8. {"E_PAYMENT_OPTION_UNAVALABLE", typeof(StartPaymentTransactionException)},
  9. {"E_UNKNOWN_PURCHASE_PLATFORM", typeof(FinishPaymentTransactionException)},
  10. {"E_TRANSACTION_NOT_FOUND", typeof(FinishPaymentTransactionException)},
  11. {"E_INCORRECT_PRODUCT", typeof(FinishPaymentTransactionException)},
  12. {"E_INCORRECT_PURCHASE_DATA", typeof(FinishPaymentTransactionException)},
  13. {"E_VERIFY_LATER", typeof(VerifyTransactionLaterException)},
  14. {"E_DIFFERENT_SOCIAL_ID", typeof(DifferentSocialIdException)},
  15. //{"E_PAYMENT_PAGE_MISSING", typeof(PaymentPageMissingException)},
  16.  
  17. }).As<Dictionary<string, Type>>();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement