ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ErrorCode.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class ErrorCode
6 {
7  protected static $map = [
8  0x00 => '#NULL!',
9  0x07 => '#DIV/0!',
10  0x0F => '#VALUE!',
11  0x17 => '#REF!',
12  0x1D => '#NAME?',
13  0x24 => '#NUM!',
14  0x2A => '#N/A',
15  ];
16 
24  public static function lookup($code)
25  {
26  if (isset(self::$map[$code])) {
27  return self::$map[$code];
28  }
29 
30  return false;
31  }
32 }
$code
Definition: example_050.php:99
static static lookup($code)
Map error code, e.g.
Definition: ErrorCode.php:24