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

public final Class Fault

extends RuntimeException
Class Inheritance
Imports
com.sun.tools.javac.util.JCDiagnostic.Error, java.io.Serial, java.text.MessageFormat, java.util.Arrays, .MissingResourceException, .ResourceBundle

A runtime exception used to report errors.

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 String
private static final String
private static final ResourceBundle
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static String

Returns:

the localized string
getMessage
(JCDiagnostic.Error
the error for which to get the localized text
error
)

Returns a localized string from a resource bundle.

Field Detail

BUNDLE_NAMEback to summary
private static final String BUNDLE_NAME
ERROR_PREFIXback to summary
private static final String ERROR_PREFIX
RESOURCE_BUNDLEback to summary
private static final ResourceBundle RESOURCE_BUNDLE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

Faultback to summary
pack-priv Fault(JCDiagnostic.Error error)

Method Detail

getMessageback to summary
private static String getMessage(JCDiagnostic.Error error)

Returns a localized string from a resource bundle.

Parameters
error:JCDiagnostic.Error

the error for which to get the localized text

Returns:String

the localized string