1.2.427. Error Messages

Error message when an error is reported in the code. Those messages will be read by whoever is triggering the error, and it has to be helpful.

It is a good exercise to read the messages out of context, and try to understand what is about. Error messages are spotted via die, exit, trigger_error() or throw.

<?php

// Not so helpful messages
die('Here be monsters');
exit('An error happened');
throw new Exception('Exception thrown at runtime');

?>

1.2.427.1. Specs

Short name

Structures/ErrorMessages

Rulesets

All, Appinfo, CE

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

error, die, exception

Available in

Entreprise Edition, Community Edition, Exakat Cloud