File size: 836 Bytes
053b80b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef KINOVASERVEREXCEPTION_H
#define KINOVASERVEREXCEPTION_H

#include <string>
#include <sstream>

#include "KBasicException.h"

#include <messages/Frame.pb.h>
#include "KError.h"

#include "HeaderInfo.h"

namespace Kinova
{
namespace Api
{
    class KDetailedException : public KBasicException
    {
    public:
        KDetailedException(const KError& error);
        KDetailedException(const KDetailedException &other);

        virtual const char* what() const throw() override;
        virtual std::string toString() override;

        KError&      getErrorInfo() { return m_error; }

    private:
        void init(const HeaderInfo& header, const Error& error);
    
        KError       m_error;
        std::string  m_errorStr;
    };

} // namespace Api
} // namespace Kinova

#endif