Error Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the error that occurred.
public class Error
type Error = class
Public Class Error
- Inheritance
-
Error
Constructors
Error() |
Initializes a new instance of the Error class. |
Error(ErrorCode, String, Nullable<ErrorSubCode>, String, String, String) |
Initializes a new instance of the Error class. |
Properties
Code |
Gets or sets the error code that identifies the category of error. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization' |
Message |
Gets or sets a description of the error. |
MoreDetails |
Gets a description that provides additional information about the error. |
Parameter |
Gets the parameter in the request that caused the error. |
SubCode |
Gets the error code that further helps to identify the error. Possible values include: 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' |
Value |
Gets the parameter's value in the request that was not valid. |
Methods
Validate() |
Validate the object. |
Applies to
Azure SDK for .NET