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
|
getLangMessage, getLocalizedMessageTag, getMessage, getMessageTag, getRuntimeErrorTagHead, getTagFormat, getTagFormat, getTagFormatLength, initTag, printStackTrace
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
public RobotApiException()
public RobotApiException(String message)
public RobotApiException(Throwable cause)
public String getExceptionTag()
RobotRuntimeException
getExceptionTag
in class RobotRuntimeException
public static RobotApiException byApiName(String api)
public static RobotApiException byFrom()
Copyright © 2020. All rights reserved.