blob: 0a26e14ca10aa5aa8a695b2c3b863b6b16cf4861 (
plain)
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
|
<?php
namespace Jasny;
/**
* Interface for interacting with an error handler.
* The interface is not concerned with how the error handler is configured.
*/
interface ErrorHandlerInterface
{
/**
* Set the caught error.
*
* @param \Throwable|\Exception|\Error
*/
public function setError($error);
/**
* Get the caught error.
*
* @return \Throwable|\Exception|\Error
*/
public function getError();
/**
* Log an error or exception
*
* @param \Exception|\Error $error
*/
public function log($error);
}
|