Skip to content
/ exceptions Public

[deprecated] A repository to create and return exceptions according to an ini file.

Notifications You must be signed in to change notification settings

tdt/exceptions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

exceptions

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,...

About

[deprecated] A repository to create and return exceptions according to an ini file.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages