2022-01-11 13:25:30 -05:00
|
|
|
<?php
|
|
|
|
namespace Helpers;
|
|
|
|
|
2022-01-28 09:54:09 -05:00
|
|
|
class ErrorHandler {
|
2022-01-13 10:51:45 -05:00
|
|
|
static public function show(object $meta) {
|
2022-01-28 09:54:09 -05:00
|
|
|
http_response_code($meta->http_code);
|
2022-01-13 10:51:45 -05:00
|
|
|
$latte = Misc::latte();
|
|
|
|
$latte->render(Misc::getView('error'), ['error' => $meta]);
|
2022-01-11 13:25:30 -05:00
|
|
|
}
|
|
|
|
}
|