public abstract class RemotingRuntimeException extends RuntimeException
Exceptions with a root cause.
This class is abstract to force the programmer to extend
the class. getMessage will include nested exception
information; getRootCause will include the innermost cause of
this exception, if any; printStackTrace and other like methods will
delegate to the wrapped exception, if any.
| 构造器和说明 |
|---|
RemotingRuntimeException(String msg)
Construct a
RemotingRuntimeException with the specified detail message. |
RemotingRuntimeException(String msg,
Throwable cause)
Construct a
RemotingRuntimeException with the specified detail message
and nested exception. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getMessage()
Return the detail message, including the message from the nested exception
if there is one.
|
Throwable |
getRootCause()
Retrieve the innermost cause of this exception, if any.
|
public RemotingRuntimeException(String msg)
RemotingRuntimeException with the specified detail message.msg - the detail messagepublic String getMessage()
getMessage 在类中 Throwablepublic Throwable getRootCause()
null if noneCopyright © 2021–2022. All rights reserved.