Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00
..
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00
2026-11-17 16:15:01 -05:00

Dhii - Exception

Build Status Code Climate Test Coverage Latest Stable Version This package complies with Dhii standards

Standards-compliant exception classes.

Details

This package contains concrete implementations of classes that implement interfaces in dhii/exception-interface. This provides developers with ready-made, standards-compliant classes that can be safely instantiated and thrown to signal the various errors. The concrete exceptions will usually have a corresponding factory trait, and the factory methods of those traits are the recommended way of creating new exception instances (after service definition, of course).

Implementations in this package also have the following features aimed to become more standards-compliant:

  • A stringable is accepted everywhere, where a string can be passed.
  • All parameters can be passed null to signal default value (which may be not null).

Consumers, i.e. code that attempts to catch, should not depend on these classes. Instead, consumers should depend on the interfaces of dhii/exception-interface.