APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.jfr.internal.dcmd

pack-priv final Class DCmdException

extends Exception
Class Inheritance
Imports
java.util.Formatter

Thrown to indicate that a diagnostic command could not be executed successfully.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
DCmdException(String
format string as described in Formatter class.
format
,
Object...
arguments referenced by the format specifiers in the format string.
args
)

Constructs a new exception with message derived from a format string.

public
DCmdException(Throwable
exception that stopped the diagnostic command to complete.
cause
,
String
format string as described in Formatter class.
format
,
Object...
arguments referenced by the format specifiers in the format string.
args
)

Constructs a new exception with message derived from a format string.

Method Summary

Modifier and TypeMethod and Description
private static String
format(String message, Object... args)

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

DCmdExceptionback to summary
public DCmdException(String format, Object... args)

Constructs a new exception with message derived from a format string.

Parameters
format:String

format string as described in Formatter class.

args:Object[]

arguments referenced by the format specifiers in the format string.

DCmdExceptionback to summary
public DCmdException(Throwable cause, String format, Object... args)

Constructs a new exception with message derived from a format string.

Parameters
cause:Throwable

exception that stopped the diagnostic command to complete.

format:String

format string as described in Formatter class.

args:Object[]

arguments referenced by the format specifiers in the format string.

Method Detail

formatback to summary
private static String format(String message, Object... args)