Name
MissingResourceException
Synopsis
Signals
that no ResourceBundle
can be located for the
desired locale or that a named resource cannot be found within a
given ResourceBundle
. getClassName(
)
returns the name of the ResourceBundle
class in question, and getKey( )
returns the name
of the resource that cannot be located.
Figure 16-45. java.util.MissingResourceException
public class MissingResourceException extends RuntimeException { // Public Constructors public MissingResourceException(String s, String className, String key); // Public Instance Methods public String getClassName( ); public String getKey( ); }
Thrown By
Locale.{getISO3Country( )
,
getISO3Language( )}
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.