jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Mod4j: Modeling for Java using Domain Specific Languages
  • MODFORJ-189

Streamline exception handling over all layers in the architecture

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.3.0
  • Component/s: DSL for Business Domain, DSL for Data Contract, DSL for Presentation, DSL for Services
  • Labels:
    None

Description

Sometimes an exception (e.h. Hibernate) comes up at the presentation layer. It would be better if lower layer exceptions are captured and translated into well-defined exception for the next layer. This neesd to be done in a consistenmt way through all layers in the architecture.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Eric Jan Malotaux added a comment - 12/Apr/10 3:28 AM

It is not easy to predict or analyse which exceptions can be expected. That is the drawback of using RuntimeExceptions by default.

This issue will be resolved/closed for now. When exceptions occur in practice, we will address them then.

Show
Eric Jan Malotaux added a comment - 12/Apr/10 3:28 AM It is not easy to predict or analyse which exceptions can be expected. That is the drawback of using RuntimeExceptions by default. This issue will be resolved/closed for now. When exceptions occur in practice, we will address them then.
Hide
Permalink
Eric Jan Malotaux added a comment - 12/May/10 2:26 PM

Validation errors resulting from rules in the business domain model are collected in a Errors object wrapped in a BusinessRuleException. Clients can catch this, retrieve the Errors object, analyze the errors and presumably show them to the user.

Other exceptions that may be caught by the presentation layer are mostly RuntimeExceptions that are caused by programming errors. For example, IllegalArgumentExceptions when a null-object is passed to a service method.

Show
Eric Jan Malotaux added a comment - 12/May/10 2:26 PM Validation errors resulting from rules in the business domain model are collected in a Errors object wrapped in a BusinessRuleException. Clients can catch this, retrieve the Errors object, analyze the errors and presumably show them to the user. Other exceptions that may be caught by the presentation layer are mostly RuntimeExceptions that are caused by programming errors. For example, IllegalArgumentExceptions when a null-object is passed to a service method.

People

  • Assignee:
    Eric Jan Malotaux
    Reporter:
    Jos Warmer
Vote (0)
Watch (0)

Dates

  • Created:
    11/Feb/10 4:20 AM
    Updated:
    14/May/10 1:04 PM
    Resolved:
    12/Apr/10 3:28 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.