Skip to content

Dedicated exception classes for various failure scenarios #10

Description

@willemstuursma

It would be great to have dedicated exceptions for various failure scenarios. Now there is only DecodingFailedException. Other failure scenarios that could use their own exception class:

  • SignatureValidationFailedException - the signature is not valid or was not created using Apple's private key
  • PaymentDataExpiredException - the payment data has expired
  • DecryptingFailureException - the data cannot be decrypted using the private key provided.

Now, we have to resort to substring matching on the exception message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions