public class RuntimeErrorException extends JMRuntimeException
java.lang.Error发生
java.lang.Error时,应该被捕获并重新抛出为
RuntimeErrorException 。
| Constructor and Description |
|---|
RuntimeErrorException(Error e)
默认构造函数。
|
RuntimeErrorException(Error e, String message)
允许指定特定错误消息的构造方法。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回实际抛出的 Error 。
|
Error |
getTargetError()
返回实际抛出的 Error 。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RuntimeErrorException(Error e)
e - 包装错误。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.