private static Message generateMessage(Message message, Connector connector) { Message m = CoreMessages.connectorCausedError(connector); if (message != null) { message.setNextMessage(m); } return message; }
/** * Factory method to create a new {@link Message} instance that is filled with the formatted * message with id <code>code</code> from the resource bundle <code>bundlePath</code>. * * @param bundlePath complete path to the resource bundle for lookup * @param code numeric code of the message */ protected Message createMessage(String bundlePath, int code) { String messageString = getString(bundlePath, code, null); return new Message(messageString, code, EMPTY_ARGS); }
/** * @param endpoint the endpoint that could not be parsed */ public MalformedEndpointException(Message message, String endpoint) { super(CoreMessages.endpointIsMalformed(endpoint).setNextMessage(message)); }
/** * @param location the path of the service */ public TransportServiceNotFoundException(String location) { super(MessageFactory.createStaticMessage(location)); }
@Override protected String generateMessage(Message message) { return message.getMessage(); }
/** * Factory method to read the message with code <code>code</code> from the resource bundle. * * @param bundlePath complete path to the resource bundle for lookup * @param code numeric code of the message * @return formatted error message as {@link String} */ protected String getString(String bundlePath, int code) { return getString(bundlePath, code, null); }
/** * Factory method to create a {@link Message} instance that is not read from a resource bundle. * * @param message Message's message text * @return a Messsage instance that has an error code of -1 and no arguments. */ public static Message createStaticMessage(String message) { return new Message(message, STATIC_ERROR_CODE, EMPTY_ARGS); }
private static Message generateMessage(Message previousMessage, Component component) { Message returnMessage = CoreMessages.componentCausedErrorIs(component); if (previousMessage != null) { previousMessage.setNextMessage(returnMessage); return previousMessage; } else { return returnMessage; } } }
private static Message generateMessage(Message message, MessageProcessor target) { Message m = CoreMessages.failedToRouterViaEndpoint(target); if (message != null) { message.setNextMessage(m); return message; } else { return m; } } }
public static Message outboundRouterMustUseOutboudEndpoints(OutboundRouter router, ImmutableEndpoint endpoint) { return factory.createMessage(BUNDLE_PATH, 233, endpoint, router); }
/** * @param endpoint the endpoint that could not be parsed */ public MalformedEndpointException(String endpoint) { super(CoreMessages.endpointIsMalformed(endpoint)); }
/** * @param endpoint the endpoint that could not be located */ public NoReceiverForEndpointException(String endpoint) { super(CoreMessages.endpointNotFound(endpoint)); }
public MessageTypeNotSupportedException(Object message, Class<?> creatorClass, Throwable cause) { super(CoreMessages.messageNotSupportedByMuleMessageFactory(message, creatorClass), cause); } }
public SecurityProviderNotFoundException(String providerName, Throwable cause) { super(CoreMessages.authNoSecurityProvider(providerName), cause); } }
/** @param message the exception message */ public EntryPointNotFoundException(String message) { super(CoreMessages.failedToFindEntrypointForComponent(message)); } }
public EncryptionStrategyNotFoundException(String strategyName, Throwable cause) { super(CoreMessages.authNoEncryptionStrategy(strategyName), cause); } }
/** * @param location the path of the service * @param cause the exception that cause this exception to be thrown */ public TransportServiceNotFoundException(String location, Throwable cause) { super(MessageFactory.createStaticMessage(location), cause); } }
public static Message exceptionListenerMustUseOutboundEndpoint(AbstractExceptionListener exceptionListener, ImmutableEndpoint endpoint) { return factory.createMessage(BUNDLE_PATH, 235, endpoint, exceptionListener); }
/** * @param endpoint the endpoint that could not be parsed * @param cause the exception that cause this exception to be thrown */ public MalformedEndpointException(String endpoint, Throwable cause) { super(CoreMessages.endpointIsMalformed(endpoint), cause); }
public static Message noEntryPointFoundForNoArgsMethodUsingResolver(final Object component, final String methodName) { return factory.createMessage(BUNDLE_PATH, 239, methodName, component); }