Tiqr / tiqr-server-libphp

A PHP library for using the tiqr authentication mechanism
6 stars 7 forks source link

Throw exceptions when unrecoveral error situation occur #36

Closed MKodde closed 2 years ago

MKodde commented 2 years ago

The library was very tolerant when error situations where encountered. Some of these situations would result in an unrecoverable situation. For example. When during generation of the enrollment key, your enrollment key can not be stored, the app would churn on.

The consumer (Tiqr-gssp) would not be able to discern when an error occurs.

By throwing exceptions in these situations, the predictability increases greatly. Allowing the consumer of the library to decide on how to deal with those situations.

https://www.pivotaltracker.com/story/show/181553909