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

jbuild.api.JBuildException Maven / Gradle / Ivy

The newest version!
package jbuild.api;

/**
 * Non-programmer errors that may happen when running a jb task.
 * 

* It allows providing a category of error with {@link ErrorCause}. * Exceptions of this type normally do not cause a stackTrace to be printed out * by the CLI. */ public class JBuildException extends RuntimeException { public enum ErrorCause { UNKNOWN, USER_INPUT, TIMEOUT, IO_READ, IO_WRITE, ACTION_ERROR } private final ErrorCause cause; public JBuildException(String reason, ErrorCause cause) { super(reason); this.cause = cause; } public ErrorCause getErrorCause() { return cause; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy