1.2.1192. Thrown Exceptions

This rules reports the usage of the throw keyword. This means all these exceptions are raised at some point in the code.

<?php

throw new MyException("An error happened");

?>

See also Exceptions.

1.2.1192.1. Specs

Short name

Exceptions/ThrownExceptions

Rulesets

All, Appinfo, CE

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

exception, throw

Available in

Entreprise Edition, Community Edition, Exakat Cloud