protected function failIfContainerNotFound(ServiceException $exception, $action, $containerName)
    {
        $errorCode = $this->getErrorCodeFromServiceException($exception);

        if ($errorCode === self::ERROR_CONTAINER_NOT_FOUND) {
            throw new \RuntimeException(sprintf(
                'Failed to %s: container "%s" not found.',
                $action,
                $containerName
            ), $exception->getCode());
        }
    }
protected function failIfContainerNotFound(ServiceException $exception, $action, $containerName)
    {
        $errorCode = $this->getErrorCodeFromServiceException($exception);

        if ($errorCode === self::ERROR_CONTAINER_NOT_FOUND) {
            throw new \RuntimeException(sprintf(
                'Failed to %s: container "%s" not found.',
                $action,
                $containerName
            ), $exception->getCode());
        }
    }
protected function failIfContainerNotFound ( ServiceException $ exception , $ action , $ containerName ) { $ errorCode = $ this -> getErrorCodeFromServiceException ( $ exception ) ; if ( $ errorCode === self :: ERROR_CONTAINER_NOT_FOUND ) { throw new \ RuntimeException ( sprintf ( 'Failed to %s: container "%s" not found.' , $ action , $ containerName ) , $ exception -> getCode ( ) ) ; } }
Throws a runtime exception if a give ServiceException derived from a "container not found" error.

@param ServiceException $exception
@param string           $action
@param string           $containerName

@throws \RuntimeException
Throws a runtime exception if a give ServiceException derived from a container not found error .