Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C4D-Exceptions - Control exceptions in your systems quickly, easily and centrally

With C4D-Exceptions you can control exceptions in your systems quickly, easily and centrally

⚙️ Installation

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

🚀 Quickstart

  • Add uses to your system:
uses
  C4D.Exceptions;

When generating exceptions, enter one of the following options::

  • 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)');

Exception default

  • If the standard exception is reported (raise Exception.Create('Error Message');) the exception that will be displayed will be the Error exception (ExceptionError)

🗑️ Uninstallation

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.exceptions and take its dependencies (c4d.msg) along:
tms uninstall c4d.exceptions -cascade
  • Uninstall only c4d.exceptions and keep c4d.msg installed:
tms uninstall c4d.exceptions
  • Uninstall only c4d.msg and keep c4d.exceptions installed, 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.


⌨️ Demo

  • Next to the project sources, you will find a test project, in the folder:
C4D-Exceptions\Samples\Demo01

‌

💬 Contributions / Ideas / Bug Fixes

To submit a pull request, follow these steps:

  1. Fork the project
  2. Create a new branch (git checkout -b minha-nova-funcionalidade)
  3. Make your changes
  4. Make the commit (git commit -am 'Functionality or adjustment message')
  5. Push the branch (git push origin Message about functionality or adjustment)
  6. Open a pull request

📞 Contatos

Course Telegram YouTube Instagram LinkedIn Blog E-mail


Code4Delphi

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages