public static EligibleError BuildError(IRestResponse response) { EligibleError eligibleError = new EligibleError(); eligibleError.Content = response.Content; eligibleError.Type = response.StatusCode.ToString(); eligibleError.Details = response.RawBytes; return eligibleError; }
public static EligibleError BuildError(IRestResponse response) { EligibleError eligibleError = new EligibleError(); eligibleError.Content = response.Content; eligibleError.Type = response.StatusCode.ToString(); eligibleError.Details = response.RawBytes; return(eligibleError); }
protected InvalidRequestException(SerializationInfo info, StreamingContext context) : base(info, context) { this.EligibleError = (EligibleError)info.GetValue("EligibleError", typeof(EligibleError)); }
public InvalidRequestException(string message, IRestResponse response, Exception inner) : base(message, inner) { EligibleError = CommonErrorBuilder.BuildError(response); }
public InvalidRequestException(string message, Exception innerException) : base(message, innerException) { EligibleError = new EligibleError(); EligibleError.Content = message; }
public AuthenticationException(string message, IRestResponse response, Exception inner) : base(message, inner) { EligibleError = CommonErrorBuilder.BuildError(response); }