2017 © Pedro Peláez
 

library exception

pingqu exception php library

image

ping-qu/exception

pingqu exception php library

  • Thursday, June 15, 2017
  • by yuchonghua
  • Repository
  • 3 Watchers
  • 0 Stars
  • 157 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

pingqu exception

Installation - 安装

composer require ping-qu/exception

Usage - 使用

1、抛出异常


throw new \Pingqu\Exception\Error("测试一个异常", 'TEST_A_EXCEPTION');

2、抛出自定义继承异常


class UserError extends \Pingqu\Exception\Error { // 魔术方法 public function __construct( $message = 'Unknown Error' , $errorId = 'UNKNOWN_ERROR' , $code = '400', $errorData = array() ) { parent::__construct( $message , $errorId , $code, $errorData ); } } throw new UserError("测试一个异常", 'TEST_A_EXCEPTION');

The Versions

15/06 2017

dev-master

9999999-dev

pingqu exception php library

  Sources   Download

LGP-2.1

The Requires

  • php >=5.3

 

by Avatar yuchonghua
by zengfangyao
by linyue

15/06 2017

0.0.1

0.0.1.0

pingqu exception php library

  Sources   Download

LGP-2.1

The Requires

  • php >=5.3

 

by Avatar yuchonghua
by zengfangyao
by linyue