Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
platform360
/
vendor
/
slim
/
slim
/
Slim
/
Error
/
File Content:
AbstractErrorRenderer.php
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License) */ declare (strict_types=1); namespace Platform360\Slim\Error; use Platform360\Slim\Exception\HttpException; use Platform360\Slim\Interfaces\ErrorRendererInterface; use Throwable; /** * Abstract Slim application error renderer * * It outputs the error message and diagnostic information in one of the following formats: * JSON, XML, Plain Text or HTML */ abstract class AbstractErrorRenderer implements ErrorRendererInterface { protected string $defaultErrorTitle = 'Slim Application Error'; protected string $defaultErrorDescription = 'A website error has occurred. Sorry for the temporary inconvenience.'; protected function getErrorTitle(Throwable $exception) : string { if ($exception instanceof HttpException) { return $exception->getTitle(); } return $this->defaultErrorTitle; } protected function getErrorDescription(Throwable $exception) : string { if ($exception instanceof HttpException) { return $exception->getDescription(); } return $this->defaultErrorDescription; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
Renderers
---
0755
AbstractErrorRenderer.php
1231 bytes
0644
N4ST4R_ID | Naxtarrr