2017 © Pedro Peláez
 

library exception

Simplifies the process of constructing new exceptions using formatted messages.

image

kherge/exception

Simplifies the process of constructing new exceptions using formatted messages.

  • Saturday, March 10, 2018
  • by kherge
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Quality Gate, (*1)

Exception

Simplifies the process of constructing new exceptions using formatted messages., (*2)

Usage

use KHerGe\Exception\AbstractException;

class MyException extends AbstractException
{
}

// Without any arguments.
$exception = new MyException();

// With only a message. ("Example message.")
$exception = new MyException('Example message.');

// With a message format and values to format. ("Example message.")
$exception = new MyException('Example %s.', 'message');

// With only a previous exception.
$exception = new MyException($previous);

// With a message and previous exception.
$exception = new MyException('Example message.', $previous);

// With a message format, values to format, and a previous exception.
$exception = new MyException('Example %s.', 'message', $previous);

Requirements

  • PHP 7.1 or greater

Installation

Use Composer to install the package as a dependency., (*3)

$ composer require kherge/exception

Testing

Use PHPUnit 7.0 to run the test suite., (*4)

$ phpunit

License

This library is available under the Apache 2.0 and MIT licenses., (*5)

The Versions

10/03 2018

dev-master

9999999-dev https://github.com/kherge/php.exception

Simplifies the process of constructing new exceptions using formatted messages.

  Sources   Download

MIT Apache-2.0

The Requires

  • php >=7.1

 

The Development Requires

exception formatting

21/02 2018

1.0.0

1.0.0.0 https://github.com/kherge/php.exception

Simplifies the process of constructing new exceptions using formatted messages.

  Sources   Download

MIT Apache-2.0

The Development Requires

exception formatting