public static function exceptionHandler(\Throwable $e) {
		$code = $e->getCode();
		if (get_class($e) == 'Object\Error\UserException') {
			$code = -1;
		}
		self::$errors[] = [
			'errno' => $code,
			'error' => [$e->getMessage()],
			'file' => $e->getFile(),
			'line' => $e->getLine(),
			'code' => self::getCode($e->getFile(), $e->getLine()),
			'backtrace' => self::debugBacktraceString($e->getTrace())
		];
		self::$flag_exception = true;
		exit;
	}
public static function exceptionHandler(\Throwable $e) {
		$code = $e->getCode();
		if (get_class($e) == 'Object\Error\UserException') {
			$code = -1;
		}
		self::$errors[] = [
			'errno' => $code,
			'error' => [$e->getMessage()],
			'file' => $e->getFile(),
			'line' => $e->getLine(),
			'code' => self::getCode($e->getFile(), $e->getLine()),
			'backtrace' => self::debugBacktraceString($e->getTrace())
		];
		self::$flag_exception = true;
		exit;
	}
public static function exceptionHandler ( \ Throwable $ e ) { $ code = $ e -> getCode ( ) ; if ( get_class ( $ e ) == 'Object\Error\UserException' ) { $ code = - 1 ; } self :: $ errors [ ] = [ 'errno' => $ code , 'error' => [ $ e -> getMessage ( ) ] , 'file' => $ e -> getFile ( ) , 'line' => $ e -> getLine ( ) , 'code' => self :: getCode ( $ e -> getFile ( ) , $ e -> getLine ( ) ) , 'backtrace' => self :: debugBacktraceString ( $ e -> getTrace ( ) ) ] ; self :: $ flag_exception = true ; exit ; }
Exception handler function

@param Exception $e
Exception handler function