2017 © Pedro Peláez
 

library exception-interface

Interfaces for most common exceptions

image

dhii/exception-interface

Interfaces for most common exceptions

  • Friday, February 23, 2018
  • by XedinUnknown
  • Repository
  • 3 Watchers
  • 0 Stars
  • 11,638 Installations
  • PHP
  • 22 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 24 % Grown

The README.md

Dhii - Exception - Interface

Build Status Code Climate Test Coverage Latest Stable Version This package complies with Dhii standards, (*1)

Interfaces for most common exceptions., (*2)

Details

  • [ThrowableInterface] - The base of all exception interfaces. Declares all the same methods as Exception in a compatible way, and additionally extends [StringableInterface].
  • [BadSubjectExceptionInterface] - Base interface for all exceptions that are related to some value being invalid, malformed, out of range, etc. Exposes that value via getSubject().
  • [InvalidArgumentExceptionInterface] - Allows de-coupling from the vanilla [InvalidArgumentException], and makes it more useful besides signalling the problem type by exposing the argument via BadSubjectExceptionInterface#getSubejct().
  • [ArgumentCodeAwareInterface] - Useful with InvalidArgumentExceptionInterface for providing information about the source of the problematic argument.
  • [OutOfBoundsExceptionInterface] - Complementing the native [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.
  • [OutOfRangeExceptionInterface] - Complementing the native [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.

The Versions

23/02 2018

dev-develop

dev-develop

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

23/02 2018

v0.2-alpha3

0.2.0.0-alpha3

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

23/02 2018

dev-task/15_tighten-internal-exception-standard

dev-task/15_tighten-internal-exception-standard

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

19/02 2018

v0.2-alpha2

0.2.0.0-alpha2

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

19/02 2018

v0.2-alpha1

0.2.0.0-alpha1

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

28/01 2018

dev-task/9_documentation-missing-for-interfaces

dev-task/9_documentation-missing-for-interfaces

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

28/12 2017

dev-task/3_add-outofrangeexceptioninterface

dev-task/3_add-outofrangeexceptioninterface

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

01/09 2017

dev-master

9999999-dev

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

01/09 2017

v0.1

0.1.0.0

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team

01/09 2017

dev-release/0.1

dev-release/0.1

Interfaces for most common exceptions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dhii Team