4 types derived from HttpException
System.Web (4)
HttpException.cs (4)
272public sealed class HttpUnhandledException : HttpException { 308public sealed class HttpCompileException : HttpException { 456public sealed class HttpParseException : HttpException { 575public sealed class HttpRequestValidationException : HttpException {
61 instantiations of HttpException
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
439throw FxTrace.Exception.AsError(new HttpException((int)HttpStatusCode.NotFound, exception.Message, exception));
System.Web (51)
Cache\SqlCacheDependency.cs (1)
1634throw new HttpException(errString, e);
CachedPathData.cs (1)
403throw new HttpException(404, String.Empty);
Compilation\AssemblyResolver.cs (3)
84throw new HttpException(SR.GetString(SR.Downlevel_requires_35)); 94throw new HttpException(SR.GetString(SR.Reference_assemblies_not_found)); 101throw new HttpException(SR.GetString(SR.Reference_assemblies_not_found));
Compilation\BuildManager.cs (2)
141throw new HttpException(_initializeException.Message, _initializeException); 189throw new HttpException(_topLevelFileCompilationException.Message,
Compilation\ClientBuildManager.cs (1)
642throw new HttpException(_hostCreationException.Message,
Compilation\CompilationUtil.cs (2)
347throw new HttpException(errorString); 364throw new HttpException(errorString);
DataAccess\SqlConnectionHelper.cs (1)
252HttpException httpExec = new HttpException(e.Message, e);
Handlers\TraceHandler.cs (2)
89HttpException e = new HttpException(403, null); 123HttpException e = new HttpException();
HttpApplication.cs (18)
1330throw new HttpException(404, null, e); 1332throw new HttpException(404, null); 1336throw new HttpException(404, null, e); 1338throw new HttpException(404, null); 1342throw new HttpException(414, null, e); 1344throw new HttpException(414, null); 1397throw new HttpException(404, null, e); 1399throw new HttpException(404, null); 1403throw new HttpException(404, null, e); 1405throw new HttpException(404, null); 1409throw new HttpException(414, null, e); 1411throw new HttpException(414, null); 3336throw new HttpException(404, null, e); 3338throw new HttpException(404, null); 3342throw new HttpException(404, null, e); 3344throw new HttpException(404, null); 3348throw new HttpException(414, null, e); 3350throw new HttpException(414, null);
HttpApplicationFactory.cs (1)
163throw new HttpException(error.Message, error);
HttpAsyncResult.cs (1)
97throw new HttpException(null, _error);
HttpException.cs (1)
63return new HttpException(message, HResultFromLastError(Marshal.GetLastWin32Error()));
HttpResponse.cs (1)
1400HttpException dummyException = new HttpException();
HttpRuntime.cs (3)
693throw new HttpException(InitializationException.Message, InitializationException); 1282throw new HttpException(503, String.Empty); 1289throw new HttpException(404, String.Empty);
httpserverutility.cs (3)
355throw new HttpException(404, String.Empty); 512error = new HttpException(404, String.Empty); 517error = new HttpException(404, String.Empty);
UI\Page.cs (1)
5696throw new HttpException(null, ar.Error);
UI\TemplateParser.cs (2)
222throw new HttpException(message); 827originalException = new HttpException(firstError.ErrorText);
UI\ViewStateException.cs (1)
113outer = new HttpException(GetCorrectErrorPageMessage(middle, errorPageMessage), middle);
Util\FileUtil.cs (1)
163throw new HttpException(404, String.Empty);
Util\SmtpMail.cs (4)
79throw new HttpException(GetInnerMostException(e).Message, e); 103throw new HttpException(GetInnerMostException(e).Message, e); 120throw new HttpException(GetInnerMostException(e).Message, e); 139throw new HttpException(GetInnerMostException(e).Message, e);
Util\Transactions.cs (1)
101throw new HttpException(null, call.Error);
System.Web.DynamicData (1)
DynamicData\Util\Misc.cs (1)
295throw new HttpException(String.Format(CultureInfo.CurrentCulture,
System.Web.Extensions (8)
ApplicationServices\ApplicationServiceHelper.cs (2)
89throw new HttpException(AtlasWeb.UserIsNotAuthenticated); 115throw new HttpException(403, AtlasWeb.AppService_RequiredSSL);
ApplicationServices\ProfileService.cs (1)
304throw new HttpException(AtlasWeb.UserIsNotAuthenticated);
Handlers\ScriptResourceHandler.cs (2)
51return new HttpException(404, AtlasWeb.ScriptResourceHandler_InvalidRequest, innerException); 807throw new HttpException(String.Format(CultureInfo.CurrentCulture,
UI\ScriptResourceAttribute.cs (3)
128throw new HttpException(String.Format(CultureInfo.CurrentCulture, 168throw new HttpException(AtlasWeb.ScriptResourceHandler_InvalidRequest); 195throw new HttpException(String.Format(
85 references to HttpException
System.ServiceModel.Activation (14)
System\ServiceModel\Activation\HostedHttpContext.cs (5)
392catch (HttpException hostedException) 411catch (HttpException hostedException) 432catch (HttpException hostedException) 443static Exception CreateCommunicationException(HttpException hostedException) 720if (e is HttpException)
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (2)
452if (exception.InnerException is HttpException) 597catch (HttpException hostedException)
System\ServiceModel\Activation\ServiceParser.cs (2)
443catch (HttpException e) 716catch (HttpException e)
System\ServiceModel\ServiceHostingEnvironment.cs (5)
184if (exception.InnerException is HttpException) 186string messageAsString = SafeTryGetHtmlErrorMessage((HttpException)exception.InnerException); 258static string SafeTryGetHtmlErrorMessage(HttpException exception) 537catch (HttpException exception) 794catch (HttpException ex)
System.Web (60)
Cache\SqlCacheDependency.cs (3)
267catch (HttpException e) { 268HttpException outerException = new HttpException( 1112HttpException outerException = new HttpException(
CachedPathData.cs (1)
395catch (HttpException e) {
DataAccess\SqlConnectionHelper.cs (1)
252HttpException httpExec = new HttpException(e.Message, e);
ErrorFormatter.cs (1)
1968exceptionFormatter = HttpException.GetErrorFormatter(nested);
FileChangesMonitor.cs (2)
177int hr = HttpException.HResultFromLastError(Marshal.GetLastWin32Error()); 1446internal static HttpException CreateFileMonitoringException(int hr, string path) {
Handlers\TraceHandler.cs (2)
89HttpException e = new HttpException(403, null); 123HttpException e = new HttpException();
HttpApplication.cs (1)
3535HttpException error = new HttpException(403, SR.GetString(SR.Handler_access_denied));
HttpBufferlessInputStream.cs (2)
159catch(HttpException) { 184catch(HttpException) {
HttpException.cs (6)
62public static HttpException CreateFromLastError(String message) { 187if (e is HttpException) { 188HttpException he = (HttpException)e; 244HttpException httpExc = e as HttpException;
HttpRequest.cs (1)
1977catch (HttpException) {
HttpResponse.cs (4)
1253errorFormatter = HttpException.GetErrorFormatter(e); 1342code = HttpException.GetHttpCodeForException(e); 1362code = HttpException.GetHttpCodeForException(e); 1400HttpException dummyException = new HttpException();
httpserverutility.cs (5)
391if (e is HttpException) { 392int code = ((HttpException)e).GetHttpCode(); 667if (error is HttpException && ((HttpException)error).GetHttpCode() != 500) 837catch (HttpException e) {
Management\TemplatedMailWebEventProvider.cs (1)
399if (HttpException.GetHttpCodeForException(Exception) == 404) {
Management\WebEvents.cs (5)
361else if (e is HttpException && e.InnerException is ViewStateException) { 373else if (e is HttpException && ((HttpException)e).WebEventCode != WebEventCodes.UndefinedEventCode) { 374eventCode = ((HttpException)e).WebEventCode; 422e.GetType() == typeof(HttpException) &&
State\OutOfProcStateClientManager.cs (2)
226internal static HttpException CreateConnectionException(string server, int port, int hr) { 367HttpException e = CreateConnectionException(_partitionInfo.Server, _partitionInfo.Port, hr);
State\sqlstateclientmanager.cs (2)
194HttpException outerException = new HttpException( 1217HttpException outerException = new HttpException(
StringResourceManager.cs (4)
51"GetModuleHandle", HttpException.HResultFromLastError(Marshal.GetLastWin32Error()).ToString(CultureInfo.InvariantCulture))); 58"FindResource", HttpException.HResultFromLastError(Marshal.GetLastWin32Error()).ToString(CultureInfo.InvariantCulture))); 66"LoadResource", HttpException.HResultFromLastError(Marshal.GetLastWin32Error()).ToString(CultureInfo.InvariantCulture))); 72"LockResource", HttpException.HResultFromLastError(Marshal.GetLastWin32Error()).ToString(CultureInfo.InvariantCulture)));
UI\BaseTemplateParser.cs (1)
28using HttpException = System.Web.HttpException;
UI\BatchParser.cs (1)
19using HttpException = System.Web.HttpException;
UI\Control.cs (1)
30using HttpException = System.Web.HttpException;
UI\Page.cs (3)
1550/// <para>Throws an <see cref='System.Web.HttpException'/> object when an error occurs during a call to the 1604if (HttpException.GetErrorFormatter(e) != null) { 2093catch (HttpException e) {
UI\PageParser.cs (1)
33using HttpException = System.Web.HttpException;
UI\SessionPageStatePersister.cs (1)
81HttpException newException = new HttpException(SR.GetString(SR.Invalid_ControlState), e);
UI\TemplateControlParser.cs (1)
27using HttpException = System.Web.HttpException;
UI\TemplateParser.cs (2)
36using HttpException = System.Web.HttpException; 855errorFormatter = HttpException.GetErrorFormatter(e);
UI\ViewStateException.cs (1)
106HttpException outer;
Util\altserialization.cs (1)
157HttpException outerException = new HttpException(SR.GetString(SR.Cant_serialize_session_state), innerException);
Util\AppVerifier.cs (1)
657catch (HttpException) {
Util\FileUtil.cs (3)
447return HttpException.HResultFromLastError(lastError); 506return HttpException.HResultFromLastError(lastError); 587return HttpException.HResultFromLastError(Marshal.GetLastWin32Error());
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
149catch (HttpException)
System.Web.Extensions (4)
Handlers\ScriptResourceHandler.cs (1)
496catch (HttpException ex) {
UI\PageRequestManager.cs (2)
233HttpException he = e as HttpException;
UI\ScriptResourceAttribute.cs (1)
127catch (HttpException e) {
System.Web.Mobile (6)
Mobile\ErrorHandlerModule.cs (2)
154HttpException httpError = error as HttpException;
Mobile\MobileErrorInfo.cs (3)
99HttpException httpException = e as HttpException; 221private bool ParseHttpException(HttpException e)
UI\MobileControls\Adapters\WmlPageAdapter.cs (1)
209if ((e is HttpException && e.InnerException != null) ||