- Installation using the Boss:
boss install github.com/Code4Delphi/C4D-Exceptions
- 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)', 'More details (optional)');
- 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)
- 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