VirtualBox

Changeset 58740 in vbox


Ignore:
Timestamp:
Nov 18, 2015 12:35:13 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: handle new error code VERR_HTTP_HOST_NOT_FOUND

Location:
trunk/src/VBox/Frontends/VirtualBox/src/net
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp

    r58426 r58740  
    951951        case UINetworkReply::NoError:                     break;
    952952        case UINetworkReply::RemoteHostClosedError:       return m_strErrorTemplate.arg(m_pThread->context(), tr("Unable to initialize HTTP library"));
     953        case UINetworkReply::UrlNotFoundError:            return m_strErrorTemplate.arg(m_pThread->context(), tr("Url not found on the server"));
    953954        case UINetworkReply::HostNotFoundError:           return m_strErrorTemplate.arg(m_pThread->context(), tr("Host not found"));
    954955        case UINetworkReply::ContentAccessDenied:         return m_strErrorTemplate.arg(m_pThread->context(), tr("Content access denied"));
     
    972973        case VINF_SUCCESS:                         m_error = UINetworkReply::NoError; break;
    973974        case VERR_HTTP_INIT_FAILED:                m_error = UINetworkReply::RemoteHostClosedError; break;
    974         case VERR_HTTP_NOT_FOUND:                  m_error = UINetworkReply::HostNotFoundError; break;
     975        case VERR_HTTP_NOT_FOUND:                  m_error = UINetworkReply::UrlNotFoundError; break;
     976        case VERR_HTTP_HOST_NOT_FOUND:             m_error = UINetworkReply::HostNotFoundError; break;
    975977        case VERR_HTTP_ACCESS_DENIED:              m_error = UINetworkReply::ContentAccessDenied; break;
    976978        case VERR_HTTP_BAD_REQUEST:                m_error = UINetworkReply::ProtocolFailure; break;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.h

    r58426 r58740  
    5555        ConnectionRefusedError,
    5656        RemoteHostClosedError,
     57        UrlNotFoundError,
    5758        HostNotFoundError,
    5859        OperationCanceledError,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette