public class RuntimeExceptionFromException extends RuntimeException
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
getCause() |
String |
getLocalizedMessage() |
String |
getMessage() |
Exception |
getOriginal() |
StackTraceElement[] |
getStackTrace() |
Throwable |
initCause(Throwable cause) |
static RuntimeException |
of(Exception e) |
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintWriter s) |
static Exception |
toOriginal(RuntimeException e) |
String |
toString() |
addSuppressed, fillInStackTrace, getSuppressed, printStackTrace, setStackTracepublic static RuntimeException of(Exception e)
public static Exception toOriginal(RuntimeException e)
public Exception getOriginal()
public String getMessage()
getMessage 在类中 Throwablepublic String getLocalizedMessage()
getLocalizedMessage 在类中 Throwablepublic void printStackTrace(PrintStream s)
printStackTrace 在类中 Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace 在类中 Throwablepublic StackTraceElement[] getStackTrace()
getStackTrace 在类中 ThrowableCopyright © 2022. All rights reserved.