Ivan Masár created DS-1529:
------------------------------

             Summary: make alert.recipient generally usable
                 Key: DS-1529
                 URL: https://jira.duraspace.org/browse/DS-1529
             Project: DSpace
          Issue Type: Improvement
            Reporter: Ivan Masár


Description:

alert.recipient is a configuration property, which specifies an email to which 
the stack traces of errors get sent. It is a really handy feature to receive 
errors from DSpace to your inbox as soon as they happen.

Problem:

However, it is opt-in, i.e. the sending has to be explicitly coded in place 
where the exception is thrown/caught. An example of current usage is here:

https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-api/src/main/java/org/dspace/search/DSIndexer.java#L843

Suggested solution:

If it were possible to send the email alert automatically for any Exception, it 
would significantly improve the usability of this feature.

I was thinking along the lines of modifying the behaviour of the Exception 
class. It's probably not possible to just override it's methods in a child 
class, because no other exceptions would inherit from the child class. Could 
Java reflection be a way to modify Exception's behaviour?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to