ca.rbon.iostream.CodeFlowError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iostream Show documentation
Show all versions of iostream Show documentation
Better ergonomics for Java IO stream handling
The newest version!
package ca.rbon.iostream;
/**
*
* CodeFlowError class.
*
*
* @author fralalonde
* @version $Id: $Id
*/
public class CodeFlowError extends RuntimeException {
static final String FLUENT_SHOULD_PREVENT = "%s This should error should have been prevented by the fluent IoStream builder constraints."
+ " Please create report this issue at https://github.com/fralalonde/iostream/issues";
/**
*
* Constructor for CodeFlowError.
*
*
* @param message a {@link java.lang.String} object.
*/
public CodeFlowError(String message) {
super(String.format(FLUENT_SHOULD_PREVENT, message));
}
/**
*
* Constructor for CodeFlowError.
*
*
* @param format a {@link java.lang.String} format template.
* @param arg an object to format
*/
public CodeFlowError(String format, Object arg) {
super(String.format(FLUENT_SHOULD_PREVENT, String.format(format, arg)));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy