ErrorResponse Class

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

public class ErrorResponse

An HTTP API response.

Constructor Summary

Constructor Description
ErrorResponse()

Empty ErrorResponse.

ErrorResponse(Error withError)

ErrorResponse with contained Error.

Method Summary

Modifier and Type Method and Description
Error getError()

Get the error value.

void setError(Error withError)

Set the error value.

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

ErrorResponse

public ErrorResponse()

Empty ErrorResponse.

ErrorResponse

public ErrorResponse(Error withError)

ErrorResponse with contained Error.

Parameters:

withError - The Error.

Method Details

getError

public Error getError()

Get the error value.

Returns:

the error value

setError

public void setError(Error withError)

Set the error value.

Parameters:

withError - the error value to set

Applies to