|
From: Peter De B. (JIRA) <no...@sp...> - 2008-01-31 19:40:46
|
Make Exception handling aware of "ErrorCoded" exceptions
--------------------------------------------------------
Key: RCP-534
URL: http://jira.springframework.org/browse/RCP-534
Project: Spring Framework Rich Client Project
Issue Type: Improvement
Components: Application Framework
Reporter: Peter De Bruycker
As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
If a suggestion implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Peter De B. (JIRA) <no...@sp...> - 2008-01-31 19:42:56
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter De Bruycker updated RCP-534:
----------------------------------
Attachment: RCP-534.patch
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Reporter: Peter De Bruycker
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If a suggestion implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Peter De B. (JIRA) <no...@sp...> - 2008-01-31 19:46:44
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter De Bruycker updated RCP-534:
----------------------------------
Description:
As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
If an exception implements ErrorCoded, the error code should be to fetch the message to display.
was:
As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
If a suggestion implements ErrorCoded, the error code should be to fetch the message to display.
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Reporter: Peter De Bruycker
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If an exception implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Geoffrey De S. (JIRA) <no...@sp...> - 2008-02-01 09:41:51
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_31523 ]
Geoffrey De Smet commented on RCP-534:
--------------------------------------
+0, would be nice to also update the reference manual.
What's an example usage of this ErrorCode?
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Reporter: Peter De Bruycker
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If an exception implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Peter De B. (JIRA) <no...@sp...> - 2008-02-01 10:11:44
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_31526 ]
Peter De Bruycker commented on RCP-534:
---------------------------------------
suppose you provide integration with another system. The communication with this system returns errorcodes if something goes wrong. You can create an exception for each possible error code you can get back, or you can create one exception that takes the errorcode.
The exception handling stuff can then fetch the error message like this:
1. errorcode
2. some.package.OtherSystemCommunicationException
3. ...
This means you can provide error messages for the codes you know, and fall back to the default behaviour, when there's an error code you didn't expect.
<code>
public class OtherSystemCommunicationException extends RuntimeException implements ErrorCoded {
private String errorCode;
public SomeBusinessException(String errorCode) {
this.errorCode = errorCode;
}
public String getErrorCode() {
return errorCode;
}
}
</code>
This is something I could have used several years ago, when integrating with the customs application ;-)
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Reporter: Peter De Bruycker
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If an exception implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Peter De B. (JIRA) <no...@sp...> - 2008-02-01 10:13:46
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_31527 ]
Peter De Bruycker commented on RCP-534:
---------------------------------------
This usecase can also be applied when working with webservices, as they tend to work with errorcodes as wel.
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Reporter: Peter De Bruycker
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If an exception implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 19:37:19
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40221#action_40221 ]
Lieven Doclo commented on RCP-534:
----------------------------------
Good idea, the same principle can be used for SqlExceptions, where there's an sql error code
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Reporter: Peter De Bruycker
> Fix For: 1.0.2
>
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If an exception implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 19:37:19
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-534:
-----------------------------
Fix Version/s: 1.0.2
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Reporter: Peter De Bruycker
> Fix For: 1.0.2
>
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If an exception implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2008-11-13 17:33:41
|
[ http://jira.springframework.org/browse/RCP-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo resolved RCP-534.
------------------------------
Resolution: Fixed
ErrorCoded functionality added
> Make Exception handling aware of "ErrorCoded" exceptions
> --------------------------------------------------------
>
> Key: RCP-534
> URL: http://jira.springframework.org/browse/RCP-534
> Project: Spring Rich Client Project
> Issue Type: Improvement
> Components: Core
> Reporter: Peter De Bruycker
> Fix For: 1.1.0
>
> Attachments: RCP-534.patch
>
>
> As suggested in the forum: http://forum.springframework.org/showthread.php?t=49277
> If an exception implements ErrorCoded, the error code should be to fetch the message to display.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|