ErrorResponse Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. textanalytics. models. ErrorResponse
- com.
public class ErrorResponse
The ErrorResponse model.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code value. |
Internal |
innerError()
Get the innerError value. |
String |
message()
Get the message value. |
String |
target()
Get the target value. |
Error |
withCode(String code)
Set the code value. |
Error |
withInnerError(InternalError innerError)
Set the innerError value. |
Error |
withMessage(String message)
Set the message value. |
Error |
withTarget(String target)
Set the target value. |
Method Details
code
public String code()
Get the code value.
Returns:
innerError
public InternalError innerError()
Get the innerError value.
Returns:
message
public String message()
Get the message value.
Returns:
target
public String target()
Get the target value.
Returns:
withCode
public ErrorResponse withCode(String code)
Set the code value.
Parameters:
Returns:
withInnerError
public ErrorResponse withInnerError(InternalError innerError)
Set the innerError value.
Parameters:
Returns:
withMessage
public ErrorResponse withMessage(String message)
Set the message value.
Parameters:
Returns:
withTarget
public ErrorResponse withTarget(String target)
Set the target value.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for