# tablepress/3.4/libraries/vendor/PhpSpreadsheet/Reader/Xls/ErrorCode.php

TablePress – Tables in WordPress made easy, version 3.4. 26 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Reader/Xls/ErrorCode.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/vendor/PhpSpreadsheet/Reader/Xls/ErrorCode.php
- Modified: 2026-09-30T03:50:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Reader/Xls/ErrorCode.php#L10-L20`.

```php
<?php

namespace TablePress\PhpOffice\PhpSpreadsheet\Reader\Xls;

class ErrorCode
{
	private const ERROR_CODE_MAP = [
		0x00 => '#NULL!',
		0x07 => '#DIV/0!',
		0x0F => '#VALUE!',
		0x17 => '#REF!',
		0x1D => '#NAME?',
		0x24 => '#NUM!',
		0x2A => '#N/A',
	];

	/**
				 * Map error code, e.g. '#N/A'.
				 * @return string|bool
				 */
				public static function lookup(int $code)
	{
		return self::ERROR_CODE_MAP[$code] ?? false;
	}
}

```
