public NationBuilderRemoteException(HttpStatusCode httpStatusCode, RemoteException remoteException, NationBuilderWebRequest nationBuilderRequest, Exception innerException = null) : base(GetMessage(remoteException), innerException) { this.HttpStatusCode = httpStatusCode; this.ExceptionCode = null == remoteException.code ? remoteException.error : remoteException.code; this.RemoteException = remoteException; this.NationBuilderRequest = nationBuilderRequest; }
private static string GetMessage(RemoteException remoteException) { string message = null == remoteException.message ? remoteException.error_description : remoteException.message; if (null != remoteException.validation_errors) { message += " Validation errors: " + String.Join("; ", remoteException.validation_errors) + "."; } return(message); }
private static string GetMessage(RemoteException remoteException) { string message = null == remoteException.message ? remoteException.error_description : remoteException.message; if (null != remoteException.validation_errors) { message += " Validation errors: " + String.Join("; ", remoteException.validation_errors) + "."; } return message; }
public bool Equals(RemoteException comparand) { return Equals((object)comparand); }
public bool Equals(RemoteException comparand) { return(Equals((object)comparand)); }