Error Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.search.visualsearch.models.Error

public class Error

Defines the error that occurred.

Constructor Summary

Constructor Description
Error()

Method Summary

Modifier and Type Method and Description
ErrorCode code()

Get the code value.

java.lang.String message()

Get the message value.

java.lang.String moreDetails()

Get the moreDetails value.

java.lang.String parameter()

Get the parameter value.

ErrorSubCode subCode()

Get the subCode value.

java.lang.String value()

Get the value value.

Error withCode(ErrorCode code)

Set the code value.

Error withMessage(String message)

Set the message 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

Error

public Error()

Method Details

code

public ErrorCode code()

Get the code value.

Returns:

the code value

message

public String message()

Get the message value.

Returns:

the message value

moreDetails

public String moreDetails()

Get the moreDetails value.

Returns:

the moreDetails value

parameter

public String parameter()

Get the parameter value.

Returns:

the parameter value

subCode

public ErrorSubCode subCode()

Get the subCode value.

Returns:

the subCode value

value

public String value()

Get the value value.

Returns:

the value value

withCode

public Error withCode(ErrorCode code)

Set the code value.

Parameters:

code - the code value to set

Returns:

the Error object itself.

withMessage

public Error withMessage(String message)

Set the message value.

Parameters:

message - the message value to set

Returns:

the Error object itself.

Applies to