Source for file Error.php
Documentation is available at Error.php
* @author Michael Bommarito
//All errors may be defined by the following format:
//define('ExceptionName', N);
//$error['lang'][ExceptionName] = 'Error message';
I've used Babelfish and a little poor knowledge of Romance/Germanic languages for the translations here.
Feel free to correct anything that looks amiss to you.
define('PolymorphicArgumentException', - 1);
define('ArgumentTypeException', - 2);
define('ArgumentBoundsException', - 3);
define('MatrixDimensionException', - 4);
define('PrecisionLossException', - 5);
define('MatrixSPDException', - 6);
$error['EN'][MatrixSPDException] = "Can only perform operation on symmetric positive definite matrix.";
define('MatrixSingularException', - 7);
define('MatrixRankException', - 8);
define('ArrayLengthException', - 9);
define('RowLengthException', - 10);
* @param int $num Error number
if (isset ($errorNumber)) {
if (isset ($error[JAMALANG][$errorNumber])) {
return $error['EN'][$errorNumber];
return ("Invalid argument to JAMAError()");
|