Files
midi-php/extend/Yzh/Exception/ConfigException.php

16 lines
341 B
PHP
Raw Normal View History

2025-08-13 10:43:56 +08:00
<?php
namespace Yzh\Exception;
class ConfigException extends BaseException
{
public function __construct($message = "", $code = 0)
{
$msg = ExceptionCode::getErrorMessage($code);
if (!empty($message)) {
$msg .= ": " . $message;
}
parent::__construct((string) $msg, (int) $code);
}
}