Class Error
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.search.customsearch.models.Error
-
public class Error extends Object
Defines the error that occurred.
-
-
Constructor Summary
Constructors Constructor Description Error()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodecode()Get the code value.Stringmessage()Get the message value.StringmoreDetails()Get the moreDetails value.Stringparameter()Get the parameter value.ErrorSubCodesubCode()Get the subCode value.Stringvalue()Get the value value.ErrorwithCode(ErrorCode code)Set the code value.ErrorwithMessage(String message)Set the message value.
-
-
-
Method Detail
-
code
public ErrorCode code()
Get the code value.- Returns:
- the code value
-
withCode
public Error withCode(ErrorCode code)
Set the code value.- Parameters:
code- the code value to set- Returns:
- the Error object itself.
-
subCode
public ErrorSubCode subCode()
Get the subCode value.- Returns:
- the subCode value
-
message
public String message()
Get the message value.- Returns:
- the message value
-
withMessage
public Error withMessage(String message)
Set the message value.- Parameters:
message- the message value to set- Returns:
- the Error object itself.
-
moreDetails
public String moreDetails()
Get the moreDetails value.- Returns:
- the moreDetails value
-
parameter
public String parameter()
Get the parameter value.- Returns:
- the parameter value
-
value
public String value()
Get the value value.- Returns:
- the value value
-
-