4 #ifndef OWT_BASE_EXCEPTION_H_ 5 #define OWT_BASE_EXCEPTION_H_ 10 enum class ExceptionType : int {
14 kLocalDeviceNotFound = 1102,
15 kLocalInvalidOption = 1104,
16 kLocalNotSupported = 1105,
19 kP2PConnectionAuthFailed = 2121,
20 kP2PMessageTargetUnreachable = 2201,
21 kP2PClientUnsupportedMethod = 2401,
22 kP2PClientInvalidArgument = 2402,
23 kP2PClientInvalidState = 2403,
24 kP2PClientRemoteNotAllowed = 2404,
25 kP2PClientRemoteNotExisted = 2405,
27 kConferenceUnknown = 3001,
28 kConferenceInvalidUser,
29 kConferenceInvalidParam,
30 kConferenceNotSupported,
31 kConferenceInvalidToken,
32 kConferenceInvalidSession
44 Exception(
const ExceptionType& type,
const std::string& message);
50 ExceptionType
Type()
const;
57 const ExceptionType type_;
58 const std::string message_;
62 #endif // OWT_BASE_EXCEPTION_H_ Definition: audioplayerinterface.h:8
std::string Message() const
Get exception message.
Class for exceptions.
Definition: exception.h:35
Exception()
Default constructor for exceptions.
ExceptionType Type() const
Get exception type.