jeremykendall/exception-interfaces

Exception interfaces inspired by Schindler, Barton, and Beck.

1.0.1 2014-02-07 19:31 UTC

This package is auto-updated.

Last update: 2022-07-25 01:45:55 UTC


README

Exception interfaces for PHP inspired by

Usage

Simply create your own custom Exception, extend \Exception, and implement one of the exception interfaces. Done!

<?php

namespace Example;

use JeremyKendall\Exception\EdgeCases\ThatsJustSilly;

class RidiculousException extends \Exception implements ThatsJustSilly {}

See Ralph Schindler's post, linked above, for background.

Installation

Install via Composer.