handle and use ServiceFault, bugfix

Could you merge this request and implement your proposition? you wrote that
code and It looks like you have more ideas than I have on this subject :-)

On 14 October 2014 21:11, Alexander Rykovanov <notifications@github.com>
wrote:

> In src/client/binary_server.cpp:
>
> > @@ -559,6 +559,14 @@ namespace
> >        in >> header;
> >        if ( Debug )std::cout << "binary_client| Got response id: " << id << " and handle " << header.RequestHandle<< std::endl;
> >
> > +      if (id == SERVICE_FAULT)
> > +      {
> > +        std::cerr << std::endl;
> > +        std::cerr << "Receive ServiceFault from Server with StatusCode " << (uint32_t) header.ServiceResult << std::cout ;//FIXME merge ToString from treeww
> > +        std::cerr << std::endl;
> > +        return;
>
> But we should think how to distinguish fatal errors from ServerFault. May
> be introduce separate exception class for that...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/FreeOpcUa/freeopcua/pull/65/files#r18851403>.
>