net.jbock.util.ExFailure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbock Show documentation
Show all versions of jbock Show documentation
jbock annotations and utils
The newest version!
package net.jbock.util;
import net.jbock.model.CommandModel;
/**
* Superclass of exceptions that may be used internally
* in the generated code. These are checked exceptions, to
* make sure none of them are thrown from the generated
* parse method.
*
* This class is internal API and should not be used
* in client code. It may be removed without warning in future
* releases.
*/
public abstract class ExFailure extends Exception {
/**
* Converts this exception to a non-exceptional failure object.
*
* @param model the command model
* @return a failure object that is not an {@code Exception}
*/
public abstract ParsingFailed toError(CommandModel model);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy