ErrorResponse Class
- java.
lang. Object - com.
microsoft. azure. management. eventhub. ErrorResponse
- com.
public class ErrorResponse
Error response indicates EventHub service is not able to process the incoming request. The reason is provided in the error message.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ErrorResponse() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
code()
Get error code. |
| java.lang.String |
message()
Get error message indicating why the operation failed. |
|
Error |
withCode(String code)
Set error code. |
|
Error |
withMessage(String message)
Set error message indicating why the operation failed. |
Methods inherited from java.lang.Object
Constructor Details
ErrorResponse
public ErrorResponse()
Method Details
code
public String code()
Get error code.
Returns:
message
public String message()
Get error message indicating why the operation failed.
Returns:
withCode
public ErrorResponse withCode(String code)
Set error code.
Parameters:
Returns:
withMessage
public ErrorResponse withMessage(String message)
Set error message indicating why the operation failed.
Parameters:
Returns: