HClient should throw actual errors

Issue #5 new
Dmitriy Vasilyev
created an issue

Now in case of any error grid from server HCLient throws not informative Error. It should provide actual server's response.

What HClient do now:

Instance of 'CallErrError'
  #0      HClient.call.<anonymous closure (package:haystack/src/client/HClient.dart:439:22)
  #1      _RootZone.runUnary (dart:async/zone.dart:1371)
  #2      _FutureListener.handleValue (dart:async/future_impl.dart:129)
  #3      _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:636)

Actual error was:

ver:"3.0" errType:"haystack::UnknownNameErr" err errTrace:"haystack::UnknownNameErr: Unknown NavTree: basVizTemplate\n  legacy::NavTree.find (NavTree.fan:53)\n  legacy::NavTree.find (NavTree.fan)\n  legacy::NavPipeline.make\$ (NavPipeline.fan:27)\n  legacy::NavPipeline.make (NavPipeline.fan:23)\n  legacy::LegacyLib.navChildren (LegacyLib.fan:207)\n  legacy::LegacyLib.navChildren (LegacyLib.fan)\n  java.lang.reflect.Method.invoke (Method.java:497)\n  fan.sys.Method.invoke (Method.java:573)\n  fan.sys.Method\$MethodFunc.callList (Method.java:212)\n  fan.sys.Method.callList (Method.java:138)\n  axon::FantomFn.doCall (FantomFn.fan:152)\n  axon::AxonContext.doCall (AxonContext.fan:142)\n  axon::FantomFn.callx (FantomFn.fan:140)\n  axon::Fn.callLazy (Fn.fan:71)\n  axon::Call.eval (Call.fan:39)\n  skyarcd::SysLib.eval (SysLib.fan:98)\n  java.lang.reflect.Method.invoke (Method.java:497)\n  fan.sys.Method.invoke (Method.java:573)\n  fan.sys.Method\$MethodFunc.callList (Method.java:212)\n  fan.sys.Method.callList (Method.java:138)\n  axon::FantomFn.doCall (FantomFn.fan:152)\n  axon::AxonContext.doCall (AxonContext.fan:142)\n  axon::FantomFn.callx (FantomFn.fan:140)\n  axon::Fn.call (Fn.fan:67)\n  skyarcd::ApiWebMod.evalOp (ApiMod.fan:152)\n  7 More...\n" dis:"haystack::UnknownNameErr: Unknown NavTree: basVizTemplate"