<PackageReference Include="Azure.Core" Version="1.47.2" />

Azure.RequestFailedException

An exception thrown when service request fails.
namespace Azure { public class RequestFailedException : Exception, ISerializable { public int Status { get; } public string ErrorCode { get; } public RequestFailedException(string message); public RequestFailedException(string message, Exception innerException); public RequestFailedException(int status, string message); public RequestFailedException(int status, string message, Exception innerException); public RequestFailedException(int status, string message, string errorCode, Exception innerException); public RequestFailedException(Response response); public RequestFailedException(Response response, Exception innerException); public RequestFailedException(Response response, Exception innerException, RequestFailedDetailsParser detailsParser); protected RequestFailedException(SerializationInfo info, StreamingContext context); public Response GetRawResponse(); } }