ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
exceptions.hpp
1 /*
2  * Copyright 2021 Marcus Behel
3  *
4  * This file is part of ArPiRobot-CoreLib.
5  *
6  * ArPiRobot-CoreLib is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * ArPiRobot-CoreLib is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with ArPiRobot-CoreLib. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #pragma once
21 
22 #include <exception>
23 #include <string>
24 
25 namespace arpirobot{
26 
27  class BadHandleException : public std::exception{
28  public:
29  const char *what() const noexcept override;
30  };
31 
32  class OpenFailedException : public std::exception{
33  public:
34  const char *what() const noexcept override;
35  };
36 
37  class NotImplementedByProviderException : public std::exception{
38  public:
39  const char *what() const noexcept override;
40  };
41 
42  class InvalidParameterException : public std::exception{
43  public:
44  const char *what() const noexcept override;
45  };
46 
47  class InvalidPinException : public std::exception{
48  public:
49  const char *what() const noexcept override;
50  };
51 
52  class WriteFailedException : public std::exception{
53  public:
54  const char *what() const noexcept override;
55  };
56 
57  class ReadFailedException : public std::exception{
58  public:
59  const char *what() const noexcept override;
60  };
61 
62  class AccessException : public std::exception{
63  public:
64  const char *what() const noexcept override;
65  };
66 
67 }
Definition: exceptions.hpp:62
Definition: exceptions.hpp:27
Definition: exceptions.hpp:42
Definition: exceptions.hpp:47
Definition: exceptions.hpp:32
Definition: exceptions.hpp:57
Definition: exceptions.hpp:52
Definition: ArduinoDevice.hpp:27