MessagingException
106107108109110111112
MunitTestFlow testFlow = new MunitTestFlow("name", muleContext); testFlow.setExpectExceptionThatSatisfies("any"); when(expressionManager.isExpression(EXPECTED)).thenReturn(false); testFlow.expectException(new MessagingException(muleEvent, null), muleEvent); }
117118119120121122123
MunitTestFlow testFlow = new MunitTestFlow("name", muleContext); testFlow.setExpectExceptionThatSatisfies("any"); when(expressionManager.isExpression(EXPECTED)).thenReturn(false); testFlow.expectException(new MessagingException(muleEvent, new Exception()), muleEvent); }
128129130131132133134
MunitTestFlow testFlow = new MunitTestFlow("name", muleContext); testFlow.setExpectExceptionThatSatisfies(Exception.class.getCanonicalName()); when(expressionManager.isExpression(EXPECTED)).thenReturn(false); testFlow.expectException(new MessagingException(muleEvent, new Exception()), muleEvent); }
5758596061626364656667686970717273
{ MimeType mt = new MimeType(contentType); String messageMimeType = mt.getPrimaryType() + "/" + mt.getSubType(); if (!messageMimeType.equals(endpointMimeType)) { throw new MessagingException( CoreMessages.unexpectedMIMEType(messageMimeType, endpointMimeType), event); } } catch (MimeTypeParseException ex) { throw new MessagingException(CoreMessages.illegalMIMEType(contentType), event, ex); } } } return event;
231232233234235236237238239240241
Message responseMsg; AxisEngine engine = getAxis(); if (engine == null) { throw new MessagingException(CoreMessages.objectIsNull("Axis Engine"), context.getMessage()); } MessageContext msgContext = new MessageContext(engine); String contentType; try
757677787980818283
{ throw (MuleException) e; } else { throw new MessagingException(event, e); } } }
8586878889909192
} return messages; } catch (MuleException e) { throw new MessagingException(e.getI18nMessage(), event, e); } }
220221222223224225226227228229230
{ methodName = (String)event.getMessage().removeProperty(MuleProperties.MULE_METHOD_PROPERTY, PropertyScope.INVOCATION); if (null == methodName) { throw new MessagingException(RmiMessages.messageParamServiceMethodNotSet(), event); } } Class[] argTypes = getArgTypes(event.getMessage().getInvocationProperty(RmiConnector.PROPERTY_SERVICE_METHOD_PARAM_TYPES), event);
8687888990919293949596
workManagerSource.getWorkManager().scheduleWork(new AsyncMessageProcessorWorker(event), WorkManager.INDEFINITE, null, new AsyncWorkListener(delegate)); } catch (Exception e) { new MessagingException( CoreMessages.errorSchedulingMessageProcessorForAsyncInvocation(delegate), event, e); } } return event; }
8182838485868788899091
if (copyEvent) { if (((DefaultMuleMessage) message).isConsumable()) { throw new MessagingException(CoreMessages.cannotCopyStreamPayload(message.getPayload().getClass().getName()), event); } eventToRoute = OptimizedRequestContext.criticalSetEvent(event); } else {