RICOH Camera USB SDK for C++  1.1.0
RICOH Camera USB SDK for C++
error.hpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Ricoh Company, Ltd. All Rights Reserved.
2 #ifndef RICOH_CAMERA_SDK_ERROR_HPP_
3 #define RICOH_CAMERA_SDK_ERROR_HPP_
4 
5 #include <string>
6 
8 
9 namespace Ricoh {
10 namespace CameraController {
11 
15 enum class ErrorCode {
20 
25 
30 
35 
40 
44  NoSpace,
45 
49  Forbidden,
50 
55 
59  AFFailed,
60 
64  Incomplete,
65 
70 };
71 
76 public:
83  Error(ErrorCode code, const std::string& message);
84 
85  ~Error() = default;
86 
92  ErrorCode getCode() const;
93 
99  const std::string& getMessage() const;
100 
101 private:
102  ErrorCode code_;
103  std::string message_;
104 };
105 
106 } // namespace CameraController
107 } // namespace Ricoh
108 
109 #endif // RICOH_CAMERA_SDK_ERROR_HPP_
Definition: camera_device.hpp:13
#define RCSDK_API
Definition: export.hpp:17
This class represents a error of a request to a camera device.
Definition: error.hpp:75
ErrorCode
The type of a error code of a request to a camera device.
Definition: error.hpp:15