-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrorHandlingInterface.php
More file actions
37 lines (35 loc) · 1 KB
/
ErrorHandlingInterface.php
File metadata and controls
37 lines (35 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Error Handling Controller Interface
*
* @package Controller
* @copyright 2014 Amy Stephen. All rights reserved.
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
namespace CommonApi\Application;
use ErrorException;
/**
* Error Handling Controller Interface
*
* @package Controller
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2014 Amy Stephen. All rights reserved.
* @since 1.0
*/
interface ErrorHandlingInterface
{
/**
* Method is called by PHP for errors if it has been assigned the PHP set_error_handler in the application
*
* @param integer $error_number
* @param string $message
* @param string $file
* @param integer $line_number
* @param array $context
*
* @return $this
* @throws ErrorException
* @since 1.0.0.0
*/
public function setError($error_number, $message, $file, $line_number, array $context = array());
}