InnerHttpError Class

  • java.lang.Object
    • com.microsoft.bot.schema.InnerHttpError

public class InnerHttpError

Object representing inner http error.

Constructor Summary

Constructor Description
InnerHttpError()

Method Summary

Modifier and Type Method and Description
java.lang.Object getBody()

Gets Body from failed request.

int getStatusCode()

Gets HttpStatusCode from failed request.

void setBody(Object withBody)

Sets Body from failed request.

void setStatusCode(int withStatusCode)

Sets HttpStatusCode from failed request.

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.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

InnerHttpError

public InnerHttpError()

Method Details

getBody

public Object getBody()

Gets Body from failed request.

Returns:

the body of the error.

getStatusCode

public int getStatusCode()

Gets HttpStatusCode from failed request.

Returns:

the statusCode value

setBody

public void setBody(Object withBody)

Sets Body from failed request.

Parameters:

withBody - The body of the error.

setStatusCode

public void setStatusCode(int withStatusCode)

Sets HttpStatusCode from failed request.

Parameters:

withStatusCode - The HTTP status code.

Applies to