Changeset 30070
- Timestamp:
- 02/12/08 15:01:17 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.ecm.platform/tags/nuxeo-platform-5.1.3-GA/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/filemanager/FileManageActionsBean.java
r28596 r30070 182 182 } catch (Throwable t) { 183 183 log.error(t); 184 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 184 185 return TRANSF_ERROR + " |(" + fullName + ")| " 185 + t.getLocalizedMessage();186 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 186 187 } 187 188 } … … 212 213 } catch (FileManagerPermissionException e) { 213 214 // security check failed 214 return TRANSF_ERROR + " |(" + fullName + ")| " + "no_right"; 215 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 216 log.error("No permissions creating " + fullName); 217 return TRANSF_ERROR + " |(" + fullName + ")| " 218 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 215 219 } 216 220 217 221 if (createdDoc == null) { 222 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 223 log.error("Couldn't create the document " + fullName); 218 224 return TRANSF_ERROR + " |(" + fullName + ")| " 219 + "wrong_document_type";225 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 220 226 } 221 227 … … 230 236 return createdDoc.getName(); 231 237 } catch (Throwable t) { 232 throw EJBExceptionHandler.wrapException(t); 238 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 239 log.error(t); 240 return TRANSF_ERROR + " |(" + fullName + ")| " 241 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 233 242 } 234 243 } … … 251 260 return createdDoc.getName(); 252 261 } catch (Throwable t) { 253 throw EJBExceptionHandler.wrapException(t); 262 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 263 log.error(t); 264 return TRANSF_ERROR + " |(" + fullName + ")| " 265 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 254 266 } 255 267 } … … 271 283 documentManager, fullName, path); 272 284 } catch (FileManagerPermissionException e) { 273 return TRANSF_ERROR + " |(" + fullName + ")| " + "no_right"; 285 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 286 log.error("No permissions creating folder " + fullName); 287 return TRANSF_ERROR + " |(" + fullName + ")| " 288 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 274 289 } 275 290 276 291 if (createdDoc == null) { 292 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 293 log.error("Couldn't create the folder " + fullName); 277 294 return TRANSF_ERROR + " |(" + fullName + ")| " 278 + "wrong_document_type";295 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 279 296 } 280 297 … … 284 301 return createdDoc.getName(); 285 302 } catch (Throwable t) { 286 return TRANSF_ERROR + " | (" + fullName + ") | " 287 + t.getLocalizedMessage(); 303 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 304 log.error(t); 305 return TRANSF_ERROR + " |(" + fullName + ")| " 306 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 288 307 } 289 308 } … … 304 323 return debug; 305 324 } catch (Throwable t) { 306 return COPY_ERROR + t.getLocalizedMessage(); 325 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 326 log.error(t); 327 return COPY_ERROR + " |(" + docId + ")| " 328 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 307 329 } 308 330 } … … 445 467 return debug; 446 468 } catch (Throwable t) { 447 return MOVE_ERROR + t.getLocalizedMessage(); 469 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 470 log.error(t); 471 return MOVE_ERROR + " |(" + docId + ")| " 472 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 448 473 } 449 474 } … … 466 491 return debug; 467 492 } catch (Throwable t) { 468 return COPY_ERROR + t.getLocalizedMessage(); 493 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 494 log.error(t); 495 return COPY_ERROR + " |(" + docId + ")| " 496 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 469 497 } 470 498 } … … 487 515 return debug; 488 516 } catch (Throwable t) { 489 return PASTE_ERROR + t.getLocalizedMessage(); 517 //Rux INA-224 simple patch for the moment, until full i18n into Exceptions 518 log.error(t); 519 return PASTE_ERROR + " |(" + docId + ")| " 520 + resourcesAccessor.getMessages().get("message.operation.fails.generic"); 490 521 } 491 522 }
