[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2071) Introduce log attribute to exception handlers

Bradley Smith (JIRA) jira-events at lists.jboss.org
Wed Oct 10 11:02:03 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-2071?page=comments#action_12381437 ] 
            
Bradley Smith commented on JBSEAM-2071:
---------------------------------------

It seems to me like the real intent of the NotLoggedInException is to act as an event that tells Seam to try and find a solution to the problem of not being logged in:

  <exception class="org.jboss.seam.security.NotLoggedInException">
    <redirect view-id="/home.xhtml">
      <message>Please log in first</message>
    </redirect>
  </exception>

Why not use an event for this situation instead of an exception?  Anyway, I voted for this issue - the stack trace is annoying.

> Introduce log attribute to exception handlers
> ---------------------------------------------
>
>                 Key: JBSEAM-2071
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2071
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 2.0.0.CR2
>            Reporter: Shane Bryzak
>         Assigned To: Shane Bryzak
>            Priority: Minor
>             Fix For: 2.0.x
>
>
> As suggested by Gavin in the forum post, we should be able to suppress logging of specific exception types.  That way people can decide whether they want NotLoggedInException etc errors cluttering up their log file.
> <exception class="MyException" log="false">
>     ...
> </exception>	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list