私はPHP documentationでこのコードを見て:PHPで例外の重大度とは何ですか?
try {
throw new ErrorException("Exception message", 0, E_USER_ERROR);
} catch(ErrorException $e) {
echo "This exception severity is: " . $e->getSeverity();
var_dump($e->getSeverity() === E_USER_ERROR);
}
そして、それは続けて:
This exception severity is: 256
bool(true)
何を例外の重大度はどういう意味、と私はまったくそれを使用する必要があるのですか?