2017 © Pedro Peláez
 

library exceptions

A basic, abstract exceptions class

image

cubicmushroom/exceptions

A basic, abstract exceptions class

  • Friday, February 20, 2015
  • by ToG
  • Repository
  • 1 Watchers
  • 0 Stars
  • 140 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Cubic Mushroom Exceptions

This library provides just a single abstract exception class with it's own bild() method for easily creating exceptions with various properties, passed as an array of arguments., (*2)

How to use

Just have a look at the src/CubicMushroom/Exceptions/AbstractException class methods for basic methods, but here is a brief overview..., (*3)

AbstractException provides build() method that can be used to prepare exceptions to be thrown., (*4)

When using build(), you don't need to pass in a $message, $code. If you don't the default for the class will be used. This is returned by the classes getDefaultMessage() and getDefaultCode() methods, if they exist., (*5)

As it's not helpful when an exception doesn't have a message, if no message is either passed, or a default set in the exception class, a MissingExceptionMessageException will be thrown., (*6)

The build() method also accepts a second array parameter. If passed, the build() method will attempt to set all the properties on the build exception using the setter for the property. If the setter is not found, then a SetterNotFoundException will be thrown., (*7)

Roadmap

  1. Add way of defining required additional parameters
  2. More stuff, as I think of it

The Versions

20/02 2015

dev-master

9999999-dev

A basic, abstract exceptions class

  Sources   Download

MIT

The Requires

  • php >= 5.4

 

The Development Requires

by Toby Griffiths

20/02 2015

1.0.5

1.0.5.0

A basic, abstract exceptions class

  Sources   Download

MIT

The Requires

  • php >= 5.4

 

The Development Requires

by Toby Griffiths

20/02 2015

1.0.4

1.0.4.0

A basic, abstract exceptions class

  Sources   Download

MIT

The Requires

  • php >= 5.4

 

The Development Requires

by Toby Griffiths

02/02 2015

v1.0.3

1.0.3.0

A basic, abstract exceptions class

  Sources   Download

MIT

The Requires

  • php >= 5.4

 

The Development Requires

by Toby Griffiths

01/02 2015

v1.0.2

1.0.2.0

A basic, abstract exceptions class

  Sources   Download

MIT

The Requires

  • php >= 5.4

 

The Development Requires

by Toby Griffiths

31/01 2015

v1.0.1

1.0.1.0

A basic, abstract exceptions class

  Sources   Download

MIT

The Development Requires

by Toby Griffiths

31/01 2015

v1.0.0

1.0.0.0

A basic, abstract exceptions class

  Sources   Download

MIT

The Development Requires

by Toby Griffiths