Changeset 259:403fe11707ac
- Timestamp:
- 09/02/09 13:53:48 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@260
- Message:
-
internationalized message text
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r254
|
r259
|
|
| 1 | | // $Id: ObserveAction.java,v 1.8 2009-09-02 10:40:45 tgambet Exp $ |
| | 1 | // $Id: ObserveAction.java,v 1.9 2009-09-02 13:53:48 tgambet Exp $ |
| 2 | 2 | // Author: Jean-Guilhem Rouel |
| 3 | 3 | // (c) COPYRIGHT MIT, ERCIM and Keio, 2006. |
| … |
… |
|
| 155 | 155 | aException); |
| 156 | 156 | |
| 157 | | if (mapOfOutputParameter.get("format").equals("xhtml10")) { |
| 158 | | String errorMessage = (String) Framework.getLanguageProperties().get(langParameter).get("stack_trace_text"); |
| | 157 | if (mapOfOutputParameter.get("mimetype").equals("text/html")) { |
| 159 | 158 | String errorContent = ""; |
| 160 | 159 | errorContent += aException.getMessage() + "\n"; |
| … |
… |
|
| 162 | 161 | errorContent += stackTraceElement.toString() + "\n"; |
| 163 | 162 | } |
| 164 | | Message mess = new Message(Message.Level.ERROR, errorMessage, errorContent); |
| | 163 | Message mess = new Message(Message.Level.ERROR, "$stack_trace_text", errorContent); |
| 165 | 164 | req.setAttribute("unicorn_message", mess); |
| 166 | 165 | (new IndexAction()).doGet(req, resp); |
| … |
… |
|
| 268 | 267 | this.createOutput(resp, aUnicornCall, |
| 269 | 268 | mapOfSpecificParameter, mapOfOutputParameter, mapOfStringObject); |
| | 269 | } catch (final IOException aException) { |
| | 270 | |
| 270 | 271 | } catch (final Exception aException) { |
| 271 | 272 | ObserveAction.logger.error("Exception : " + aException.getMessage(), |