APIdia Launch Partner
Top Description Fields Constructors
com.sun.tools.javac.util

public Class FatalError

extends Error
Class Inheritance

Throwing an instance of this class causes immediate termination of the main compiler method. It is used when some non-recoverable error has been detected in the compiler environment at runtime.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
FatalError(JCDiagnostic
A diagnostic containing the reason for failure.
d
)

Construct a FatalError with the specified detail message.

public
FatalError(JCDiagnostic
A diagnostic containing the reason for failure.
d
,
Throwable
An exception causing the error
t
)

Construct a FatalError with the specified detail message and cause.

public
FatalError(String
An English(!) string describing the failure, typically because the diagnostic resources are missing.
s
)

Construct a FatalError with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Error.serialVersionUID.

Constructor Detail

FatalErrorback to summary
public FatalError(JCDiagnostic d)

Construct a FatalError with the specified detail message.

Parameters
d:JCDiagnostic

A diagnostic containing the reason for failure.

FatalErrorback to summary
public FatalError(JCDiagnostic d, Throwable t)

Construct a FatalError with the specified detail message and cause.

Parameters
d:JCDiagnostic

A diagnostic containing the reason for failure.

t:Throwable

An exception causing the error

FatalErrorback to summary
public FatalError(String s)

Construct a FatalError with the specified detail message.

Parameters
s:String

An English(!) string describing the failure, typically because the diagnostic resources are missing.