core/oxpspaymorrowerrorhandler.php
public function redirectWithError( $iErrorCode, $sController = 'order' )
    {
        $sErrorMessage = $this->getErrorByCode( $iErrorCode );

        // Set error
        $oEx = oxNew( 'oxExceptionToDisplay' );
        $oEx->setMessage( $sErrorMessage );
        oxRegistry::get( "oxUtilsView" )->addErrorToDisplay( $oEx, false );

        // Redirect (refresh page)
        $sUrl = $this->getConfig()->getShopCurrentUrl() . "cl=" . $sController;
        $sUrl = oxRegistry::get( "oxUtilsUrl" )->processUrl( $sUrl );
        oxRegistry::getUtils()->redirect( $sUrl );

        return;
    }
public function redirectWithError( $iErrorCode, $sController = 'order' )
    {
        $sErrorMessage = $this->getErrorByCode( $iErrorCode );

        // Set error
        $oEx = oxNew( 'oxExceptionToDisplay' );
        $oEx->setMessage( $sErrorMessage );
        oxRegistry::get( "oxUtilsView" )->addErrorToDisplay( $oEx, false );

        // Redirect (refresh page)
        $sUrl = $this->getConfig()->getShopCurrentUrl() . "cl=" . $sController;
        $sUrl = oxRegistry::get( "oxUtilsUrl" )->processUrl( $sUrl );
        oxRegistry::getUtils()->redirect( $sUrl );

        return;
    }
public function redirectWithError ( $ iErrorCode , $ sController = 'order' ) { $ sErrorMessage = $ this -> getErrorByCode ( $ iErrorCode ) ; // Set error $ oEx = oxNew ( 'oxExceptionToDisplay' ) ; $ oEx -> setMessage ( $ sErrorMessage ) ; oxRegistry :: get ( "oxUtilsView" ) -> addErrorToDisplay ( $ oEx , false ) ; // Redirect (refresh page) $ sUrl = $ this -> getConfig ( ) -> getShopCurrentUrl ( ) . "cl=" . $ sController ; $ sUrl = oxRegistry :: get ( "oxUtilsUrl" ) -> processUrl ( $ sUrl ) ; oxRegistry :: getUtils ( ) -> redirect ( $ sUrl ) ; return ; }
Redirect user to given controller and shows an error.
In case of 'RELOAD_CONFIGURATION_REQUIRED' error, update module settings and redirect.

@codeCoverageIgnore

@param        $iErrorCode
@param string $sController
Redirect user to given controller and shows an error . In case of RELOAD_CONFIGURATION_REQUIRED error update module settings and redirect .