private function getAssociatedClass($errno)
    {
        $associations = [
            E_WARNING => Exception\WarningException::class,
            E_NOTICE => Exception\NoticeException::class,
            E_USER_ERROR => Exception\UserErrorException::class,
            E_USER_WARNING => Exception\UserWarningException::class,
            E_USER_NOTICE => Exception\UserNoticeException::class,
            E_STRICT => Exception\StrictException::class,
            E_RECOVERABLE_ERROR => Exception\RecoverableErrorException::class,
            E_DEPRECATED => Exception\DeprecatedException::class,
            E_USER_DEPRECATED => Exception\UserDeprecatedException::class,
        ];

        if (isset($associations[$errno])) {
            return $associations[$errno];
        }

        return Exception\ErrorException::class;
    }
private function getAssociatedClass($errno)
    {
        $associations = [
            E_WARNING => Exception\WarningException::class,
            E_NOTICE => Exception\NoticeException::class,
            E_USER_ERROR => Exception\UserErrorException::class,
            E_USER_WARNING => Exception\UserWarningException::class,
            E_USER_NOTICE => Exception\UserNoticeException::class,
            E_STRICT => Exception\StrictException::class,
            E_RECOVERABLE_ERROR => Exception\RecoverableErrorException::class,
            E_DEPRECATED => Exception\DeprecatedException::class,
            E_USER_DEPRECATED => Exception\UserDeprecatedException::class,
        ];

        if (isset($associations[$errno])) {
            return $associations[$errno];
        }

        return Exception\ErrorException::class;
    }
private function getAssociatedClass ( $ errno ) { $ associations = [ E_WARNING => Exception \ WarningException :: class , E_NOTICE => Exception \ NoticeException :: class , E_USER_ERROR => Exception \ UserErrorException :: class , E_USER_WARNING => Exception \ UserWarningException :: class , E_USER_NOTICE => Exception \ UserNoticeException :: class , E_STRICT => Exception \ StrictException :: class , E_RECOVERABLE_ERROR => Exception \ RecoverableErrorException :: class , E_DEPRECATED => Exception \ DeprecatedException :: class , E_USER_DEPRECATED => Exception \ UserDeprecatedException :: class , ] ; if ( isset ( $ associations [ $ errno ] ) ) { return $ associations [ $ errno ] ; } return Exception \ ErrorException :: class ; }
Getting the exception class name associated with error code.

@param int $errno level of the error raised

@return string
Getting the exception class name associated with error code .