Class BuildException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jdrupes.builder.api.BuildException
- All Implemented Interfaces:
Serializable
Represents an exception that occurs during the build. Terminates the
current build when thrown.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new builds the exception.BuildException(String format, Object... args) Instantiates a new build exception. -
Method Summary
Modifier and TypeMethodDescriptionSets the cause.from(ResourceProvider resourceProvider) From.origin()Returns the origin of this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BuildException
public BuildException()Initializes a new builds the exception. -
BuildException
Instantiates a new build exception. As a convenience, any Throwable arguments will be replaced by their message.- Parameters:
format- the formatargs- the args
-
-
Method Details
-
cause
Sets the cause.- Parameters:
cause- the cause- Returns:
- the builds the exception
-
from
From.- Parameters:
resourceProvider- the resource provider- Returns:
- the builds the exception
-
origin
Returns the origin of this exception. This is the resource provider set withfrom(ResourceProvider).- Returns:
- the resource provider
-