With C4D-Exceptions you can control exceptions in your systems quickly, easily and centrally
- Installation using the TMS Smart Setup:
tms install c4d.exceptions
Tip
The c4d.exceptions file is located on the Community server, which is disabled by default. On a machine where it hasn't been enabled yet, run the following first: tms server-enable community
- Manual installation: Open your Delphi and add the following folder to your project, under Project > Options > Building > Delphi Compiler > Search path
C4D-Exceptions\Src- Add uses to your system:
uses
C4D.Exceptions;- Information exception:
raise ExceptionMsg.Create('My message', 'More details (optional)');- Warning exception:
raise ExceptionWarning.Create('My message', 'More details (optional)');- Error exception:
raise ExceptionError.Create('My message', 'More details (optional)');- Permission exception:
raise ExceptionPermission.Create('My message', 'More details (optional)');- Obligatory exception:
raise ExceptionObligatory.Create('My message (optional)', Edit1);- Empty exception:
raise ExceptionEmpty.Create('My message', 'More details (optional)');- If the standard exception is reported (raise Exception.Create('Error Message');) the exception that will be displayed will be the Error exception (ExceptionError)
c4d.exceptions depends on c4d.msg, which is installed automatically together with it.
- Uninstall both, listing them explicitly:
tms uninstall c4d.exceptions c4d.msg
- Uninstall
c4d.exceptionsand take its dependencies (c4d.msg) along:
tms uninstall c4d.exceptions -cascade
- Uninstall only
c4d.exceptionsand keepc4d.msginstalled:
tms uninstall c4d.exceptions
- Uninstall only
c4d.msgand keepc4d.exceptionsinstalled, using-force:
tms uninstall c4d.msg -force
Warning
Without -force, Smart Setup refuses to remove c4d.msg while c4d.exceptions is installed. With -force, c4d.exceptions is left without its dependency and will not build until c4d.msg is installed again.
- Next to the project sources, you will find a test project, in the folder:
C4D-Exceptions\Samples\Demo01
To submit a pull request, follow these steps:
- Fork the project
- Create a new branch (
git checkout -b minha-nova-funcionalidade) - Make your changes
- Make the commit (
git commit -am 'Functionality or adjustment message') - Push the branch (
git push origin Message about functionality or adjustment) - Open a pull request