[seam-issues] [JBoss JIRA] Commented: (SEAMCATCH-12) Add ExceptionResponse to the API

Jason Porter (JIRA) jira-events at lists.jboss.org
Tue Nov 30 12:38:04 EST 2010


    [ https://jira.jboss.org/browse/SEAMCATCH-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566294#comment-12566294 ] 

Jason Porter commented on SEAMCATCH-12:
---------------------------------------

I think I'd just do level so it can be used by different things (logging, messages, etc), but I'm not quite sure what type (and what that type would contain) to make it.  Either way we go we'll have to create some mapper, unless we create subclasses so we'd have an ExceptionResponse and a LogExceptionResponse with a logLevel.  WDYT?

> Add ExceptionResponse to the API
> --------------------------------
>
>                 Key: SEAMCATCH-12
>                 URL: https://jira.jboss.org/browse/SEAMCATCH-12
>             Project: Seam Catch
>          Issue Type: Feature Request
>    Affects Versions: Alpha1
>            Reporter: Dan Allen
>            Assignee: Jason Porter
>            Priority: Minor
>             Fix For: Alpha1
>
>
> Add a reusable ExceptionResponse value object to the API for use in specifying exception to HTTP responses. This will likely get reused by the JAX-RS, Servlet and JSF integrations, at the very least.
> ExceptionResponse {
>    forType
>    statusCode
>    message
>    logLevel?
> }
> A similar API was introduced in the REST module alpha. I'd like to consolidate such classes.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list