🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #21311

łapanie exception rzuconego w atrybucie

#21311
From: Łukasz Kuryło
Date: Fri, 08 Jan 2010 11:31
12 lines
1555 bytes
Witam.
Mam klasę udekorowaną atrybutem:

[PrincipalPermission(SecurityAction.Demand, Role = "XYZ")]
    public class MyPage : Page
    { //... }

Kiedy user nie należy do wymienionej grupy, rzucany jest wyjątek
System.Security.SecurityException.
Szybkie pytanie. Jak (i gdzie) mogę łapać ten wyjątek?

pozdro
Technical Details
Message-ID: <eb57822c-f7a8-481b-b4f3-9f36b0f118de@k17g2000yqh.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!goblin1!goblin.stu.neva.ru!postnews.google.com!k17g2000yqh.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!goblin1!goblin.stu.neva.ru!postnews.google.com!k17g2000yqh.googlegroups.com!not-for-mail
From: Łukasz Kuryło <lszk86@gmail.com>
Newsgroups: alt.pl.comp.lang.csharp
Subject: łapanie exception rzuconego w atrybucie
Date: Fri, 8 Jan 2010 03:31:22 -0800 (PST)
Organization: http://groups.google.com
Lines: 12
Message-ID: <eb57822c-f7a8-481b-b4f3-9f36b0f118de@k17g2000yqh.googlegroups.com>
NNTP-Posting-Host: 78.133.254.90
Mime-Version: 1.0
X-Trace: posting.google.com 1262950283 29010 127.0.0.1 (8 Jan 2010 11:31:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 8 Jan 2010 11:31:23 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k17g2000yqh.googlegroups.com; posting-host=78.133.254.90;  posting-account=SpSbMAkAAABUouo3zeQ4nUG0saYciwqW
User-Agent: G2/1.0
X-HTTP-Via: 1.1 morpheus.future-processing.com:8080 (squid/2.7.STABLE6)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.6)  Gecko/20091201 Firefox/3.5.6,gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit