CPP Device Virtualization API Reference for Oracle Internet of Things Cloud Service Client Software Library. Release 21.1.1.0.0-3. E92477-09
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Exception.hpp
1 /*
2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3  *
4  * This software is dual-licensed to you under the MIT License (MIT) and
5  * the Universal Permissive License (UPL). See the LICENSE file in the root
6  * directory for license terms. You may choose either license, or both.
7  */
8 
9 #pragma once
10 
11 #include <stdexcept>
12 #include <string>
13 #include "iotcs.h"
14 
15 #ifndef _MSC_VER
16 #define NOEXCEPT noexcept
17 #else
18 #define NOEXCEPT
19 #endif
20 
21 namespace iotdcl {
25  class CanNotAuthorizeException : public std::exception {
26  public:
27  const char * what () const NOEXCEPT {
28  return "Can not authorize exception";
29  }
30  };
34  class GeneralException : public std::exception {
35  public:
36  const char * what () const NOEXCEPT {
37  return "General security exception";
38  }
39  };
40 };
Common exception.
Definition: Exception.hpp:34
Thrown on problems with authorization.
Definition: Exception.hpp:25