Changeset 20 in cheroxy for trunk/src/CRXProxy.cpp


Ignore:
Timestamp:
11/08/12 17:19:07 (11 years ago)
Author:
cheese
Message:

#1 fix and arrange exception handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CRXProxy.cpp

    r19 r20  
    5151}
    5252
     53CRXProxy *
     54CRXProxy::GetNewInstance(const int aSocket)
     55{
     56    return new(std::nothrow) CRXProxy (aSocket);
     57}
     58
    5359int
    5460CRXProxy::ForwardMT (void)
     
    9399        {
    94100            CRX_ERROR_ADD (mClient.GetErrorMessage ().c_str ());
    95             CRX_ERROR (aResult, "failed to receive from browser");
     101            CRX_ERROR (aResult, "Failed to receive from browser");
    96102            break;
    97103        }
     
    109115            {
    110116                CRX_ERROR_ADD (aWebServer.GetErrorMessage ().c_str ());
    111                 CRX_ERROR (aResult, "failed to connect to server <%s>", aHttpRequest.GetURL ().c_str ());
     117                CRX_ERROR (aResult, "Failed to connect to server <%s>", aHttpRequest.GetURL ().c_str ());
    112118                return aResult;
    113119            }
     
    119125        {
    120126            CRX_ERROR_ADD (aWebServer.GetErrorMessage ().c_str ());
    121             CRX_ERROR (aResult, "failed to send to server <%s>", aHttpRequest.GetURL ().c_str ());
     127            CRX_ERROR (aResult, "Failed to send to server <%s>", aHttpRequest.GetURL ().c_str ());
    122128            return aResult;
    123129        }
     
    132138            {
    133139                CRX_ERROR_ADD (aWebServer.GetErrorMessage ().c_str ());
    134                 CRX_ERROR (aResult, "failed to receive <%s>", aHttpRequest.GetURL ().c_str ());
     140                CRX_ERROR (aResult, "Failed to receive <%s>", aHttpRequest.GetURL ().c_str ());
    135141                break;
    136142            }
     
    145151            {
    146152                CRX_ERROR_ADD (mClient.GetErrorMessage ().c_str ());
    147                 CRX_ERROR (aResult, "failed to send <%s>", aHttpRequest.GetURL ().c_str ());
     153                CRX_ERROR (aResult, "Failed to send <%s>", aHttpRequest.GetURL ().c_str ());
    148154                break;
    149155            }
Note: See TracChangeset for help on using the changeset viewer.