Download the PHP package dhii/exception-interface without Composer
On this page you can find all versions of the php package dhii/exception-interface. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dhii/exception-interface
More information about dhii/exception-interface
Files in dhii/exception-interface
Download dhii/exception-interface
More information about dhii/exception-interface
Files in dhii/exception-interface
Vendor dhii
Package exception-interface
Short Description Interfaces for most common exceptions
License MIT
Package exception-interface
Short Description Interfaces for most common exceptions
License MIT
Please rate this library. Is it a good library?
Informations about the package exception-interface
Dhii - Exception - Interface
Interfaces for most common exceptions.
Details
ThrowableInterface
- The base of all exception interfaces. Declares all the same methods asException
in a compatible way, and additionally extendsStringableInterface
.BadSubjectExceptionInterface
- Base interface for all exceptions that are related to some value being invalid, malformed, out of range, etc. Exposes that value viagetSubject()
.InvalidArgumentExceptionInterface
- Allows de-coupling from the vanillaInvalidArgumentException
, and makes it more useful besides signalling the problem type by exposing the argument viaBadSubjectExceptionInterface#getSubejct()
.ArgumentCodeAwareInterface
- Useful withInvalidArgumentExceptionInterface
for providing information about the source of the problematic argument.OutOfBoundsException
, it occurs when a key is addressed in a set that does not have it, like accessing a non-existing array key. Exposes the bad key.OutOfRangeException
, it occurs when a value is valid but illegal, i.e. is outside of the allowed range, like when an integer that represents a colour and must be 0-255 has the value of 256. Exposes the bad value.RuntimeExceptionInterface
- A generic runtime problem.InternalExceptionInterface
- A problem that occurs in relation to the inner workings of the unit, and is not caused by the consumer. Guarantees to expose an inner exception.
All versions of exception-interface with dependencies
PHP Build Version
Package Version
The package dhii/exception-interface contains the following files
Loading the files please wait ....