public HESException(HESCode code) : base(Errors[code]) { Code = code; }
public static string GetMessage(HESCode code) { return(Errors[code]); }
public static AuthorizationResponse Error(HESCode code) { return(new AuthorizationResponse { Failed = true, Code = code }); }