src/Exception/HorizonException.php
/**
	 * Generates an exception message from the provided unique code.
	 *
	 * @param int $code
	 * @return string
	 */
Generates an exception message from the provided unique code.
@param int $code
@return string
Generates an exception message from the provided unique code . @param int $code @return string
private function generateMessage($code) {
		static $ERRORS = array(
			0x0001 => 'Missing required trait',
			0x0002 => 'Missing configuration file',
			0x0003 => 'Configuration file did not return an array',
			0x0004 => 'Driver load failed',
			0x0005 => 'Critical file missing',
			0x0006 => 'Critical class missing',
			0x0007 => 'Request instance not loaded',
			0x0008 => 'Response instance not loaded',
			0x0009 => 'View initialization error'
		);
		if (isset($ERRORS[$code])) {
			return $ERRORS[$code];
		}
		return 'Unknown exception';
	}
private function generateMessage ( $ code ) { static $ ERRORS = array ( 0x0001 => 'Missing required trait' , 0x0002 => 'Missing configuration file' , 0x0003 => 'Configuration file did not return an array' , 0x0004 => 'Driver load failed' , 0x0005 => 'Critical file missing' , 0x0006 => 'Critical class missing' , 0x0007 => 'Request instance not loaded' , 0x0008 => 'Response instance not loaded' , 0x0009 => 'View initialization error' ) ; if ( isset ( $ ERRORS [ $ code ] ) ) { return $ ERRORS [ $ code ] ; } return 'Unknown exception' ; }
Generates an exception message from the provided unique code.
Generates an exception message from the provided unique code .
// Find the error and return it // Not found