CreateFault() protected static method

Creates a fault message.
protected static CreateFault ( IServiceRequest request, Exception exception ) : ServiceFault
request IServiceRequest The request.
exception System.Exception The exception.
return ServiceFault
Esempio n. 1
0
 /// <summary>
 /// Saves an exception as response.
 /// </summary>
 /// <param name="e">The exception.</param>
 private IServiceResponse SaveExceptionAsResponse(Exception e)
 {
     try {
         return(EndpointBase.CreateFault(m_request, e));
     } catch (Exception e2) {
         return(EndpointBase.CreateFault(null, e2));
     }
 }