History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NUCYKLO-63
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed/Completed
Priority: Critical Critical
Assignee: Damian Gajda
Reporter: Damian Gajda
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Cyklotron 2

Create convenience methods for errorResult in actions

Created: 2004-09-29 15:47   Updated: 2004-10-08 12:43
Component/s: None
Affects Version/s: 0.1
Fix Version/s: 0.1

Time Tracking:
Not Specified


 Description  « Hide
Probably add methods with following signatures.

errorResult(Context, String errorKey)
- result comes from errorKey

errorResult(Context, String errorKeyPrefix, Exception errorException)
- result comes from errorKeyPrefix+errorException.class.name

seriousErrorResult(Context, String errorKeyPrefix, Exception errorException)
- result comes from errorKeyPrefix+errorException.class.name


Information that should be provided for result message generation:
- key from prefix and exception name
- message parameter - i18ned resource.name (the resource that was modified)
- message parameter - exception message (some may be meaningful)

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Damian Gajda - 2004-10-08 12:43
Implemented the methods only leaving the modified resource name out.
I don't know what problems may be caused if a modified resource was really deleted.