Interface Yiisoft\ErrorHandler\ThrowableRendererInterface
ThrowableRendererInterface converts throwable into error data suitable for adding it to response.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| render() | Returns error data suitable for adding it to response in production environment. | Yiisoft\ |
| renderVerbose() | Returns error data suitable for adding it to response in development environment. | Yiisoft\ |
Method Details
Returns error data suitable for adding it to response in production environment.
| public abstract Yiisoft\ | ||
| $t | Throwable | |
| $request | \ |
|
public function render(Throwable $t, ?ServerRequestInterface $request = null): ErrorData;
Returns error data suitable for adding it to response in development environment.
| public abstract Yiisoft\ | ||
| $t | Throwable | |
| $request | \ |
|
public function renderVerbose(Throwable $t, ?ServerRequestInterface $request = null): ErrorData;
User Contributed Notes
Leave a comment
Join the conversation to share a note.