tdt / exceptions
An exception package, made extensible through an ini file.
v1.4
2013-05-07 16:55 UTC
Requires
- php: >=5.3.0
- monolog/monolog: 1.2.*
This package is not auto-updated.
Last update: 2024-11-06 11:31:57 UTC
README
A repository to create and return exceptions according to an ini file.
Usage
You can include this in your PHP project through the PHP composer. Using TDTExceptions is very easy:
throw new TDTException(452,array(parameter1, parameter2));
This will cause the class TDTException look in the exceptions.ini file. From that file it will extract the necessary information such documentation, and message to create a nice exception. In the exceptions.ini file you can see the message can accept parameters. These are the parameters you pass along with the constructor in the array as second parameter. In the ini file you can address these parameters by $1,$2,...