Class CompilationException

All Implemented Interfaces:
Serializable

public class CompilationException extends RuntimeException
Exception that signals a compilation error.
See Also:
  • Constructor Details

    • CompilationException

      public CompilationException()
      Creates an instance of this exception type.
    • CompilationException

      public CompilationException(String message, Throwable cause)
      Creates an instance of this exception type.
      Parameters:
      message - The error message
      cause - The root cause
    • CompilationException

      public CompilationException(String message)
      Creates an instance of this exception type.
      Parameters:
      message - The error message
    • CompilationException

      public CompilationException(Throwable cause)
      Creates an instance of this exception type.
      Parameters:
      cause - The root cause
  • Method Details

    • getCause

      public final Throwable getCause()
      Match the JDK 1.4 Throwable version of getCause() on JDKinvalid input: '<'1.4 systems.
      Overrides:
      getCause in class Throwable
      Returns:
      The throwable cause of this exception.
    • printStackTrace

      public final void printStackTrace()
      Print a stack trace to stderr.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public final void printStackTrace(PrintStream s)
      Print a stack trace to the specified PrintStream.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      s - The PrintStream to print a stack trace to.
    • printStackTrace

      public final void printStackTrace(PrintWriter w)
      Print a stack trace to the specified PrintWriter.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      w - The PrintWriter to print a stack trace to.