PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Alexey Dodonov   Mezon REST Exception   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Mezon REST Exception
Exception class to use in REST APIs applications
Author: By
Last change:
Date: 3 years ago
Size: 703 bytes
 

Contents

Class file image Download

REST Exception Build Status codecov

Installation

Just type

composer require mezon/rest-exception

Usage

To use this class is very simple thing:

throw(new \Mezon\Rest\Exception(
	"", // message of the exception, like in the standard Exception class
	-1, // code of the exception, like in the standard Exception class
	200, // HTTP code of the request
	"<p>Warning!" // HTTP request body
));