APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.catalog

pack-priv final Class CatalogMessages

extends Object
Class Inheritance
Imports
java.net.URI, java.util.Locale, .MissingResourceException, .ResourceBundle, jdk.xml.internal.SecuritySupport

Catalog Error messages
Since
9

Field Summary

Modifier and TypeField and Description
pack-priv static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
pack-priv static ResourceBundle

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static String

Returns:

the formatted message
formatMessage
(String
the message key
key
,
Object[]
the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.
arguments
)

Format a message with the specified arguments using the default locale information.

pack-priv static String

Returns:

the formatted message
formatMessage
(String
the message key
key
,
Object[]
the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.
arguments
,
Locale
the locale of the message
locale
)

Format a message with the specified arguments using the given locale information.

pack-priv static void
reportError(String
the message key
key
)

Reports an error.

pack-priv static void
reportError(String
the message key
key
,
Object[]
the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.
arguments
)

Reports an error.

pack-priv static void
reportIAE(String key, Object[]
the arguments for formatting the error message
arguments
,
Throwable
the cause if any
cause
)

Reports IllegalArgumentException

pack-priv static void
reportIAEOnNull(String
the name of the argument
name
,
String
the value of the argument
value
)

Reports IllegalArgumentException if the argument is null.

pack-priv static void
reportNPEOnNull(String
the name of the argument
name
,
Object
the value of the argument
value
)

Reports NullPointerException if the argument is null.

pack-priv static void
reportRunTimeError(String
the message key
key
,
Object[]
the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.
arguments
)

Reports a CatalogException.

pack-priv static void
reportRunTimeError(String
the message key
key
,
Throwable
the cause if any
cause
)

Reports a CatalogException.

pack-priv static void
reportRunTimeError(String
the message key
key
,
Object[]
the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.
arguments
,
Throwable
the cause if any
cause
)

Reports a CatalogException.

pack-priv static String
sanitize(String
a URI to be sanitized
uri
)

Returns sanitized URI.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bundleNameback to summary
pack-priv static final String bundleName
ERR_CIRCULAR_REFERENCEback to summary
public static final String ERR_CIRCULAR_REFERENCE
ERR_CREATING_URIback to summary
public static final String ERR_CREATING_URI
ERR_INVALID_ARGUMENTback to summary
public static final String ERR_INVALID_ARGUMENT
ERR_INVALID_CATALOGback to summary
public static final String ERR_INVALID_CATALOG
ERR_INVALID_ENTRY_TYPEback to summary
public static final String ERR_INVALID_ENTRY_TYPE
ERR_INVALID_PATHback to summary
public static final String ERR_INVALID_PATH
ERR_NO_CATALOGback to summary
public static final String ERR_NO_CATALOG
ERR_NO_MATCHback to summary
public static final String ERR_NO_MATCH
ERR_NO_URI_MATCHback to summary
public static final String ERR_NO_URI_MATCH
ERR_NULL_ARGUMENTback to summary
public static final String ERR_NULL_ARGUMENT
ERR_OTHERback to summary
public static final String ERR_OTHER
ERR_PARSER_CONFback to summary
public static final String ERR_PARSER_CONF
ERR_PARSING_FAILEDback to summary
public static final String ERR_PARSING_FAILED
ERR_URI_NOTABSOLUTEback to summary
public static final String ERR_URI_NOTABSOLUTE
ERR_URI_NOTVALIDURLback to summary
public static final String ERR_URI_NOTVALIDURL
resourceBundleback to summary
pack-priv static ResourceBundle resourceBundle

Constructor Detail

CatalogMessagesback to summary
pack-priv CatalogMessages()

Method Detail

formatMessageback to summary
pack-priv static String formatMessage(String key, Object[] arguments)

Format a message with the specified arguments using the default locale information.

Parameters
key:String

the message key

arguments:Object[]

the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.

Returns:String

the formatted message

Exceptions
MissingResourceException:
If the message with the specified key cannot be found
formatMessageback to summary
pack-priv static String formatMessage(String key, Object[] arguments, Locale locale)

Format a message with the specified arguments using the given locale information.

Parameters
key:String

the message key

arguments:Object[]

the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.

locale:Locale

the locale of the message

Returns:String

the formatted message

Exceptions
MissingResourceException:
If the message with the specified key cannot be found
reportErrorback to summary
pack-priv static void reportError(String key)

Reports an error.

Parameters
key:String

the message key

reportErrorback to summary
pack-priv static void reportError(String key, Object[] arguments)

Reports an error.

Parameters
key:String

the message key

arguments:Object[]

the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.

reportIAEback to summary
pack-priv static void reportIAE(String key, Object[] arguments, Throwable cause)

Reports IllegalArgumentException

Parameters
arguments:Object[]

the arguments for formatting the error message

cause:Throwable

the cause if any

reportIAEOnNullback to summary
pack-priv static void reportIAEOnNull(String name, String value)

Reports IllegalArgumentException if the argument is null.

Parameters
name:String

the name of the argument

value:String

the value of the argument

reportNPEOnNullback to summary
pack-priv static void reportNPEOnNull(String name, Object value)

Reports NullPointerException if the argument is null.

Parameters
name:String

the name of the argument

value:Object

the value of the argument

reportRunTimeErrorback to summary
pack-priv static void reportRunTimeError(String key, Object[] arguments)

Reports a CatalogException.

Parameters
key:String

the message key

arguments:Object[]

the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.

reportRunTimeErrorback to summary
pack-priv static void reportRunTimeError(String key, Throwable cause)

Reports a CatalogException.

Parameters
key:String

the message key

cause:Throwable

the cause if any

reportRunTimeErrorback to summary
pack-priv static void reportRunTimeError(String key, Object[] arguments, Throwable cause)

Reports a CatalogException.

Parameters
key:String

the message key

arguments:Object[]

the message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.

cause:Throwable

the cause if any

sanitizeback to summary
pack-priv static String sanitize(String uri)

Returns sanitized URI.

Parameters
uri:String

a URI to be sanitized