Package io.quarkus.builder
Class BuildException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.quarkus.builder.BuildException
-
- All Implemented Interfaces:
Serializable
public class BuildException extends Exception
- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildException(String msg)Constructs a newDeploymentExceptioninstance.BuildException(String msg, Throwable cause, List<Diagnostic> diagnostics)Constructs a newDeploymentExceptioninstance with an initial message and cause.BuildException(String msg, List<Diagnostic> diagnostics)Constructs a newDeploymentExceptioninstance with an initial message.BuildException(Throwable cause, List<Diagnostic> diagnostics)Constructs a newDeploymentExceptioninstance with an initial cause.BuildException(List<Diagnostic> diagnostics)Constructs a newDeploymentExceptioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Diagnostic>getDiagnostics()Get 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 Detail
-
BuildException
public BuildException(List<Diagnostic> diagnostics)
Constructs a newDeploymentExceptioninstance. The message is left blank (null), and no cause is specified.- Parameters:
diagnostics- the diagnostics associated with the build failure (notnull)
-
BuildException
public BuildException(String msg)
Constructs a newDeploymentExceptioninstance. The diagnostics is left blank (null), and no cause is specified.- Parameters:
msg- the message
-
BuildException
public BuildException(String msg, List<Diagnostic> diagnostics)
Constructs a newDeploymentExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the messagediagnostics- the diagnostics associated with the build failure (notnull)
-
BuildException
public BuildException(Throwable cause, List<Diagnostic> diagnostics)
Constructs a newDeploymentExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisDeploymentException; otherwise the message is left blank (null).- Parameters:
cause- the causediagnostics- the diagnostics associated with the build failure (notnull)
-
BuildException
public BuildException(String msg, Throwable cause, List<Diagnostic> diagnostics)
Constructs a newDeploymentExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the causediagnostics- the diagnostics associated with the build failure (notnull)
-
-
Method Detail
-
getDiagnostics
public List<Diagnostic> getDiagnostics()
Get the diagnostics associated with the build failure.- Returns:
- the diagnostics associated with the build failure (not
null)
-
-