SPSite.CatchAccessDeniedException Property
Reserved for internal use. Use the CatchAccessDeniedException property instead to specify whether SharePoint Foundation traps and handles “Access Denied” exceptions.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Property Value
Type: System.Booleantrue if SharePoint Foundation traps and handles “Access Denied” exceptions; otherwise, false.