public class MissingResourceException
extends RuntimeException
| java.lang.Object | ||||
| ↳ | java.lang.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | java.lang.RuntimeException | |||
| ↳ | java.util.MissingResourceException | |||
表示资源缺失。
也可以看看:
Public constructors |
|
|---|---|
MissingResourceException(String s, String className, String key) 用指定的信息构造一个MissingResourceException。 |
|
Public methods |
|
|---|---|
String |
getClassName() 获取构造函数传递的参数。 |
String |
getKey() 获取构造函数传递的参数。 |
Inherited methods |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
MissingResourceException (String s, String className, String key)
用指定的信息构造一个MissingResourceException。 详细消息是描述此特定异常的字符串。
| Parameters | |
|---|---|
s |
String: the detail message |
className |
String: the name of the resource class |
key |
String: the key for the missing resource. |
String getClassName ()
获取构造函数传递的参数。
| Returns | |
|---|---|
String |
the name of the resource class |
String getKey ()
获取构造函数传递的参数。
| Returns | |
|---|---|
String |
the key for the missing resource |