atk4 / api

Implementation of RestAPI for Agile Data
https://agiletoolkit.org/
14 stars 12 forks source link

Do not rely on Exception having getParams() method in caughtException #16

Closed PhilippGrashoff closed 5 years ago

PhilippGrashoff commented 5 years ago

We cannot rely on that the Exception processed in caughtException() is a descendant of \atk4\core\Exception. Its possible that its another Exception which does not have this method. trying to call it will make the function fail.