public class RobotApiException extends RobotRuntimeException
| Constructor and Description |
|---|
RobotApiException() |
RobotApiException(String message) |
RobotApiException(String message,
Object... format) |
RobotApiException(String message,
Throwable cause) |
RobotApiException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
RobotApiException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static RobotApiException |
byApiName(String api) |
static RobotApiException |
byFrom() |
String |
getExceptionTag()
默认情况下,会获取类名去掉Exception并开头小写的结果。
例如:BlockException -> block
你可以重写此方法以自定义自己类的二级tag
|
getLocalizedMessage, getLocalizedMessageTag, getMessageTag, getRuntimeErrorTagHead, getTagFormat, getTagFormat, getTagFormatLength, initTag, printStackTraceaddSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toStringpublic RobotApiException()
public RobotApiException(String message)
public RobotApiException(Throwable cause)
public String getExceptionTag()
RobotRuntimeExceptiongetExceptionTag in class RobotRuntimeExceptionpublic static RobotApiException byApiName(String api)
public static RobotApiException byFrom()
Copyright © 2020. All rights reserved.