internal static void ThrowError(ReportingErrorCode errorCode, string message, Exception exception) { ExTraceGlobals.ReportingWebServiceTracer.TraceError(0L, message); throw new DataServiceException((int)ReportingErrors.HttpStatusCodes[errorCode], errorCode.ToString(), message, string.Empty, exception); }
internal static void ThrowError(ReportingErrorCode errorCode, string message) { ServiceDiagnostics.ThrowError(errorCode, message, null); }