All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javabuilders.BuildException Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package org.javabuilders;

import java.text.MessageFormat;

/**
 * Abstract build exception
 * @author Jacek Furmankiewicz
 */
@SuppressWarnings("serial")
public class BuildException extends RuntimeException {
	
	
	/**
	 * @param messageFormat Message format in MessageFormat style ({0} {1})
	 * @param messageArguments Arguments
	 */
	public BuildException(String messageFormat, Object...messageArguments) {
		super(MessageFormat.format(messageFormat, messageArguments));
	}

	/**
	 * @param cause
	 */
	public BuildException(Throwable cause) {
		super(cause);
	}

	/**
	 * @param cause
	 * @param messageFormat Message format in MessageFormat style ({0} {1})
	 * @param messageArguments Arguments
	 */
	public BuildException(Throwable cause,String messageFormat, Object...messageArguments) {
		super(MessageFormat.format(messageFormat, messageArguments), cause);
	}
	

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy