Package io.quarkus.builder
Class BuildException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.quarkus.builder.BuildException
- All Implemented Interfaces:
Serializable
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBuildException(String msg) Constructs a newBuildExceptioninstance.BuildException(String msg, Throwable cause, List<Diagnostic> diagnostics) Constructs a newBuildExceptioninstance with an initial message and cause.BuildException(String msg, List<Diagnostic> diagnostics) Constructs a newBuildExceptioninstance with an initial message.BuildException(Throwable cause, List<Diagnostic> diagnostics) Constructs a newBuildExceptioninstance with an initial cause.BuildException(List<Diagnostic> diagnostics) Constructs a newBuildExceptioninstance. -
Method Summary
Modifier and TypeMethodDescriptionGet the diagnostics associated with the build failure.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BuildException
Constructs a newBuildExceptioninstance. The message is left blank (null), and no cause is specified.- Parameters:
diagnostics- the diagnostics associated with the build failure (notnull)
-
BuildException
Constructs a newBuildExceptioninstance. The diagnostics is left blank (null), and no cause is specified.- Parameters:
msg- the message
-
BuildException
Constructs a newBuildExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the messagediagnostics- the diagnostics associated with the build failure (notnull)
-
BuildException
Constructs a newBuildExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisBuildException; otherwise the message is left blank (null).- Parameters:
cause- the causediagnostics- the diagnostics associated with the build failure (notnull)
-
BuildException
Constructs a newBuildExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the causediagnostics- the diagnostics associated with the build failure (notnull)
-
-
Method Details
-
getDiagnostics
Get the diagnostics associated with the build failure.- Returns:
- the diagnostics associated with the build failure (not
null)
-