Class CompileException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.officefloor.compile.impl.issues.CompileException
-
- All Implemented Interfaces:
java.io.Serializable
public class CompileException extends java.lang.Exception
CompileException
.- Author:
- Daniel Sagenschneider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompileException(DefaultCompilerIssue issue)
Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultCompilerIssue
getCompilerIssue()
Obtains theCompilerIssue
.java.lang.StackTraceElement[]
getStackTrace()
static void
printIssue(DefaultCompilerIssue issue, java.io.PrintStream out)
Prints theDefaultCompilerIssue
to thePrintStream
.static void
printIssue(DefaultCompilerIssue issue, java.io.PrintWriter out)
Prints theDefaultCompilerIssue
to thePrintWriter
.void
printStackTrace()
void
printStackTrace(java.io.PrintStream stream)
void
printStackTrace(java.io.PrintWriter writer)
static java.lang.String
toIssueString(DefaultCompilerIssue issue)
Obtains theDefaultCompilerIssue
as string.java.lang.String
toString()
-
-
-
Constructor Detail
-
CompileException
public CompileException(DefaultCompilerIssue issue)
Instantiate.- Parameters:
issue
-DefaultCompilerIssue
.
-
-
Method Detail
-
toIssueString
public static java.lang.String toIssueString(DefaultCompilerIssue issue)
Obtains theDefaultCompilerIssue
as string.- Parameters:
issue
-DefaultCompilerIssue
.- Returns:
- Text details of the
DefaultCompilerIssue
.
-
printIssue
public static void printIssue(DefaultCompilerIssue issue, java.io.PrintStream out)
Prints theDefaultCompilerIssue
to thePrintStream
.- Parameters:
issue
-DefaultCompilerIssue
.out
-PrintStream
.
-
printIssue
public static void printIssue(DefaultCompilerIssue issue, java.io.PrintWriter out)
Prints theDefaultCompilerIssue
to thePrintWriter
.- Parameters:
issue
-DefaultCompilerIssue
.out
-PrintWriter
.
-
getCompilerIssue
public DefaultCompilerIssue getCompilerIssue()
Obtains theCompilerIssue
.- Returns:
CompilerIssue
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream stream)
- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
- Overrides:
printStackTrace
in classjava.lang.Throwable
-
getStackTrace
public java.lang.StackTraceElement[] getStackTrace()
- Overrides:
getStackTrace
in classjava.lang.Throwable
-
-