
* refactor: fix exception handling The removed catch is never uses in php versions above 7. The need for multiple catch statements like this is to support both php 5 and 7. * remove traces of old exception handling * add typehints * dont treat exception code 0 specially