public static InternalServerError ( string source, ushort code, string description ) : HttpResponseException | ||
source | string | The source of the fault. |
code | ushort | The code of the fault. |
description | string | A human-readable description of what went wrong. |
Результат | HttpResponseException |
/// <summary> /// Returns an exception wrapping a fault response indicating that an unknown internal failure occurred. /// </summary> /// <param name="faultSource">Source to use when creating ServiceFaults.</param> /// <returns>Exception wrapping the fault response.</returns> public static HttpResponseException UnknownInternalFailureException(string faultSource) { return(ServiceFault.InternalServerError( faultSource, UnknownInternalFailure, "The service has encountered an unknown internal server error.")); }
/// <summary> /// Returns exception when there is an exception calling data layer. /// </summary> /// <param name="details">Fault inner message.</param> /// <returns>Exception wrapping the fault.</returns> public static HttpResponseException DataLayerException(string details) { return(ServiceFault.InternalServerError( Source, DataLayerError, "An unknown error occurred while communicating with data layer.", details)); }