Mastercard/community-pass-flutter-wrapper

Error Code and Message no Propagated to Flutter Wrapper

muruthi opened this issue · 0 comments

Describe the bug
If I come across an error accessing one of CP APIs, an error code and error message from the Kernel should be propagated to the CPK

To Reproduce
Steps to reproduce the behavior:

  1. Use the saveBiometricConsent API with the wrong programGUID
  2. Call the API.
  3. You will get a Platform Exception on the catch block.
  4. The exception contains a code and message that do not align to the Kernel.

Expected behavior
The code and error should be consistent to the Kernel errors.