X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web%2FHttpUnhandledException.cs;h=e45aa4678a8993db847cdf6bc665032cc95c25de;hb=889b71116d77b38125e67918397b39018f6e14b6;hp=611d9bfbdbcd0f204787a67f302af6735a9ab291;hpb=21d1fdc48703514b1164ea2a76fc3bbf3d40871f;p=mono.git diff --git a/mcs/class/System.Web/System.Web/HttpUnhandledException.cs b/mcs/class/System.Web/System.Web/HttpUnhandledException.cs index 611d9bfbdbc..e45aa4678a8 100644 --- a/mcs/class/System.Web/System.Web/HttpUnhandledException.cs +++ b/mcs/class/System.Web/System.Web/HttpUnhandledException.cs @@ -1,12 +1,12 @@ -// -// System.Web.HttpUnhandledException.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - +// +// System.Web.HttpUnhandledException.cs +// +// Authors: +// Tim Coleman (tim@timcoleman.com) +// Sebastien Pouliot +// +// Copyright (C) Tim Coleman, 2002 +// Copyright (C) 2005-2009 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -27,22 +27,28 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // - -namespace System.Web { - public sealed class HttpUnhandledException : HttpException { - - #region Constructors - - internal HttpUnhandledException (string message, Exception innerException) - : base (message, innerException) - { - } - - internal HttpUnhandledException (string message, string x, Exception innerException) - : base (message, innerException) - { - } - - #endregion - } -} + +using System.Security.Permissions; + +namespace System.Web +{ + // CAS - no InheritanceDemand here as the class is sealed + [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] + [Serializable] + public sealed class HttpUnhandledException : HttpException + { + public HttpUnhandledException () + { + } + + public HttpUnhandledException (string message) + : base (message) + { + } + + public HttpUnhandledException (string message, Exception innerException) + : base (message, innerException) + { + } + } +}