MuleException
576577578579580581582583584585
boolean fileWasMoved = sourceFile.renameTo(destinationFile); // move didn't work - bail out if (!fileWasMoved) { throw new DefaultMuleException(FileMessages.failedToMoveFile(sourceFile.getAbsolutePath(), destinationFile.getAbsolutePath())); } } }
195196197198199200201202203204205206207208209210211212213214215216217
{ FileUtils.moveFile(sourceFile, destinationFile); } catch (IOException e) { throw new DefaultMuleException(FileMessages.failedToMoveFile(sourceFile.getAbsolutePath(), destinationFile.getAbsolutePath())); } } if (connector.isAutoDelete()) { // no moveTo directory if (destinationFile == null) { // delete source if (!sourceFile.delete()) { throw new DefaultMuleException(FileMessages.failedToDeleteFile(sourceFile)); } } else { // nothing to do here since moveFile() should have deleted
96979899100101102103104105106
{ sfb = createServerFactory(); } catch (Exception e) { throw new DefaultMuleException(e); } // The binding - i.e. SOAP, XML, HTTP Binding, etc if (bindingId != null) {
100101102103104105106107108109110
JsonData data = new JsonData(transportMessageString); return data.get(Bayeux.DATA_FIELD).toString(); } catch (IOException e) { throw new DefaultMuleException(e); } } else { return transportMessage;
444546474849505152535455565758
} else { if (StringUtils.isEmpty(methodName)) { throw new DefaultMuleException(CoreMessages.propertiesNotSet("methodName")); } return script.invokeMethod(methodName, eventContext.getMessage().getPayload()); } } throw new Exception(new DefaultMuleException("script engine not supported")); }
7172737475767778
{ return message.getPayloadAsBytes(); } catch (Exception e) { throw new DefaultMuleException(e); } }
8384858687888990
{ return message.getPayloadAsString(); } catch (Exception e) { throw new DefaultMuleException(e); } }
9596979899100101102
{ return message.getPayloadAsString(encoding); } catch (Exception e) { throw new DefaultMuleException(e); } }
77787980818283848586
context.getMuleContext().fireNotification( new FunctionalTestNotification(context, replyMessage, FunctionalTestNotification.EVENT_RECEIVED)); if (throwException) { throw new DefaultMuleException(MessageFactory.createStaticMessage("Functional Test Service Exception")); } return replyMessage; }
139140141142143144145146147148149
{ throw (Exception)returnMessage; } else { throw new DefaultMuleException(MessageFactory.createStaticMessage("Functional Test Service Exception")); } } return replyMessage; }