ErrorDefinition Class
- java.
lang. Object - com.
microsoft. azure. management. resources. ErrorDefinition
- com.
public class ErrorDefinition
Error description and code explaining why resource name is invalid.
Constructor Summary
Constructor | Description | |
---|---|---|
ErrorDefinition() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get code of the error. |
java.lang.String |
message()
Get description of the error. |
Error |
withCode(String code)
Set code of the error. |
Error |
withMessage(String message)
Set description of the error. |
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
ErrorDefinition
public ErrorDefinition()
Method Details
code
public String code()
Get code of the error.
Returns:
the code value
message
public String message()
Get description of the error.
Returns:
the message value
withCode
public ErrorDefinition withCode(String code)
Set code of the error.
Parameters:
code
- the code value to set
Returns:
the ErrorDefinition object itself.
withMessage
public ErrorDefinition withMessage(String message)
Set description of the error.
Parameters:
message
- the message value to set
Returns:
the ErrorDefinition object itself.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for Java