ActivityHandler.InvokeResponseException 类
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - com.
microsoft. bot. builder. ActivityHandler. InvokeResponseException
- com.
- java.
- java.
protected class ActivityHandler.InvokeResponseException
extends java.lang.Exception
InvokeResponse 异常。
构造函数摘要
| 构造函数 | 说明 |
|---|---|
| InvokeResponseException(int withStatusCode) |
使用 HTTP 状态代码值初始化新实例。 |
| InvokeResponseException(int withStatusCode, Object withBody) |
使用 HTTP 状态代码值初始化新实例。 |
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
|
Invoke |
createInvokeResponse()
返回基于此异常的 Invoke |
方法继承自 java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
方法继承自 java.lang.Throwable
java.lang.Throwable.addSuppressed
java.lang.Throwable.fillInStackTrace
java.lang.Throwable.getCause
java.lang.Throwable.getLocalizedMessage
java.lang.Throwable.getMessage
java.lang.Throwable.getStackTrace
java.lang.Throwable.getSuppressed
java.lang.Throwable.initCause
java.lang.Throwable.printStackTrace
java.lang.Throwable.printStackTrace
java.lang.Throwable.printStackTrace
java.lang.Throwable.setStackTrace
java.lang.Throwable.toString
构造函数详细信息
InvokeResponseException
public InvokeResponseException(int withStatusCode)
使用 HTTP 状态代码值初始化新实例。
参数:
withStatusCode
- HTTP 状态代码。
InvokeResponseException
public InvokeResponseException(int withStatusCode, Object withBody)
使用 HTTP 状态代码值初始化新实例。
参数:
withStatusCode
- HTTP 状态代码。
withBody
- 正文。 可以为 null。
方法详细信息
createInvokeResponse
public InvokeResponse createInvokeResponse()
基于此异常返回 InvokeResponse。
返回:
InvokeResponse 值。