ActivityHandler.InvokeResponseException Class

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.microsoft.bot.builder.ActivityHandler.InvokeResponseException

protected class ActivityHandler.InvokeResponseException
extends java.lang.Exception

InvokeResponse Exception.

Constructor Summary

Constructor Description
InvokeResponseException(int withStatusCode)

Initializes new instance with HTTP status code value.

InvokeResponseException(int withStatusCode, Object withBody)

Initializes new instance with HTTP status code value.

Method Summary

Modifier and Type Method and Description
InvokeResponse createInvokeResponse()

Returns an InvokeResponse based on this exception.

Methods inherited from 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

Methods inherited from 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

Constructor Details

InvokeResponseException

public InvokeResponseException(int withStatusCode)

Initializes new instance with HTTP status code value.

Parameters:

withStatusCode - The HTTP status code.

InvokeResponseException

public InvokeResponseException(int withStatusCode, Object withBody)

Initializes new instance with HTTP status code value.

Parameters:

withStatusCode - The HTTP status code.
withBody - The body. Can be null.

Method Details

createInvokeResponse

public InvokeResponse createInvokeResponse()

Returns an InvokeResponse based on this exception.

Returns:

The InvokeResponse value.

Applies to