/** * @param location the path of the service */ public TransportServiceNotFoundException(String location) { super(MessageFactory.createStaticMessage(location)); }
/** * 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 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 * @param arg * @see #getBundlePath(String) */ protected Message createMessage(String bundlePath, int code, Object arg) { return createMessage(bundlePath, code, new Object[] {arg}); }
/** * @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); } }
/** * 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 * @param arg * @return formatted error message as {@link String} */ protected String getString(String bundlePath, int code, Object arg) { Object[] arguments = new Object[] {arg}; return getString(bundlePath, code, arguments); }
/** * 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 * @param arg1 * @param arg2 * @see #getBundlePath(String) */ protected Message createMessage(String bundlePath, int code, Object arg1, Object arg2) { return createMessage(bundlePath, code, new Object[] {arg1, arg2}); }
public JsonSchemaValidationException(String validationError, String invalidJson) { super(MessageFactory.createStaticMessage(validationError)); this.invalidJson = invalidJson; }
/** * 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 * @param arg1 * @param arg2 * @return formatted error message as {@link String} */ protected String getString(String bundlePath, int code, Object arg1, Object arg2) { Object[] arguments = new Object[] {arg1, arg2}; return getString(bundlePath, code, arguments); }
/** * 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 * @param arg1 * @param arg2 * @param arg3 * @see #getBundlePath(String) */ protected Message createMessage(String bundlePath, int code, Object arg1, Object arg2, Object arg3) { return createMessage(bundlePath, code, new Object[] {arg1, arg2, arg3}); }
public JsonSchemaValidationException(String validationError, String invalidJson, Exception exception) { super(MessageFactory.createStaticMessage(validationError), exception); this.invalidJson = invalidJson; }
protected static String getString(String bundlePath, String code) { return MessageFactory.getString(bundlePath, Integer.parseInt(code)); } }
public SerializationException(String message) { this(MessageFactory.createStaticMessage(message)); }
protected String getString(String bundlePath, String code) { return super.getString(bundlePath, Integer.parseInt(code)); }
public RegistryException(String message, Throwable throwable) { super(MessageFactory.createStaticMessage(message), throwable); } }
/** * 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); }
public DefaultMuleException(String message) { this(MessageFactory.createStaticMessage(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>. * * <b>Attention:</b> do not confuse this method with * <code>createMessage(String, int, Object)</code>. * * @param bundlePath complete path to the resource bundle for lookup * @param code numeric code of the message * @param arguments * @see #getBundlePath(String) */ protected Message createMessage(String bundlePath, int code, Object... arguments) { String messageString = getString(bundlePath, code, arguments); return new Message(messageString, code, arguments); }
public SerializationException(String message, Throwable cause) { this(MessageFactory.createStaticMessage(message), cause); }
public DefaultMuleException(String message, Throwable cause) { this(MessageFactory.createStaticMessage(message), cause); }
public RegistryException(String message) { super(MessageFactory.createStaticMessage(message)); }