/home/techb158/public_html/wp-content/plugins/kirki/libraries/framework
NameSizeModeActions
Collections/-0755rm
Concerns/-0755rm
Console/-0755rm
Constants/-0755rm
Contracts/-0755rm
Database/-0755rm
Discovery/-0755rm
Exceptions/-0755rm
Filesystem/-0755rm
Http/-0755rm
Managers/-0755rm
Middlewares/-0755rm
Polyfill/-0755rm
Routing/-0755rm
Supports/-0755rm
Validation/-0755rm
View/-0755rm
Wordpress/-0755rm
ApiExceptionHandler.php21270644editdlrm
Application.php244380644editdlrm
Container.php128850644editdlrm
CoreServiceProvider.php41020644editdlrm
DTO.php85050644editdlrm
Facade.php28060644editdlrm
helpers.php216790644editdlrm
Listener.php8330644editdlrm
Resource.php68760644editdlrm
Route.php522610644editdlrm
Sanitizer.php102900644editdlrm
ServiceProvider.php10570644editdlrm
SiteExceptionHandler.php20760644editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/kirki/libraries/framework/SiteExceptionHandler.php (2076B)
getMessage() ?: 'Forbidden'); } if ($exception instanceof ModelNotFoundException) { static::fail(Response::NOT_FOUND, $exception->getMessage() ?: 'Not Found'); } if ($exception instanceof ValidationException) { static::fail(Response::UNPROCESSABLE_ENTITY, $exception->getMessage() ?: 'Validation failed'); } $status = (int) $exception->getCode(); if ($status < 100 || $status > 599) { $status = Response::INTERNAL_SERVER_ERROR; } if (\function_exists('error_log')) { \error_log($exception->getMessage()); } static::fail($status, $exception->getMessage() ?: 'Internal Server Error'); } /** * Stop the request with a WordPress error page at the given HTTP status. * * @param int $status HTTP status code. * @param string $message Error message. * * @return void * * @since 1.0.0 */ protected static function fail(int $status, string $message) { status_header($status); nocache_headers(); wp_die(esc_html($message), esc_html($message), ['response' => $status]); } }