我想在php中将数组作为异常而不是字符串.如果你定义自己的扩展Exception类的类,是否可以这样做?
例如 throw new CustomException('string', $options = array('params'));
throw new CustomException('string', $options = array('params'));
php custom-exceptions
custom-exceptions ×1
php ×1