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
Constructor Details
ErrorDefinition
public ErrorDefinition()
Method Details
code
public String code()
Get code of the error.
Returns:
message
public String message()
Get description of the error.
Returns:
withCode
public ErrorDefinition withCode(String code)
Set code of the error.
Parameters:
Returns:
withMessage
public ErrorDefinition withMessage(String message)
Set description of the error.
Parameters:
Returns:
Applies to
Azure SDK for Java
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla