[
https://issues.jboss.org/browse/CDI-544?page=com.atlassian.jira.plugin.sy...
]
Antoine Sabot-Durand commented on CDI-544:
------------------------------------------
It certainly could be clarified, but the idea here is to have a different exception if
something happens inside event dispatcher and not observers (user code). For instance a
user may provide a shut down executor that will not be able to run our async observer not
because of their content. We have 2 options here:
# Expose the exception coming from the faulty executor, could be not very user friendly
# Wrap it in our own execption with our own error message. Perhaps
{{IllegalArgumentException}} is not the best choice
10.2.3. The Event interface - provided executor cannot execute
observers notification
-------------------------------------------------------------------------------------
Key: CDI-544
URL:
https://issues.jboss.org/browse/CDI-544
Project: CDI Specification Issues
Issue Type: Clarification
Reporter: Tomas Remes
{quote}
If the provided executor cannot execute observers notification, an
IllegalArgumentException is thrown.
{quote}
What does it mean "cannot execute"? I am not really sure. Does it mean the
observer throws an exception which should be wrapped in IAE?
This would likely contradict {{10.5.1. Handling multiple exceptions thrown during an
asynchronous event}}.
Maybe this sentence could be omitted.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)