You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
359 B
PHP
20 lines
359 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use jrosset\ExceptionHelper\ExceptionHelper;
|
|
|
|
function fail () {
|
|
throw new RuntimeException(
|
|
'General error',
|
|
0,
|
|
new LogicException('My logic is undeniable')
|
|
);
|
|
}
|
|
|
|
try {
|
|
fail();
|
|
}
|
|
catch (Throwable $exception) {
|
|
var_dump(ExceptionHelper::toString($exception));
|
|
} |