Robotics Library  0.7.0
WeissException.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016, Markus Rickert
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 //
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright notice,
11 // this list of conditions and the following disclaimer in the documentation
12 // and/or other materials provided with the distribution.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 // POSSIBILITY OF SUCH DAMAGE.
25 //
26 
27 #ifndef RL_HAL_WEISSEXCEPTION_H
28 #define RL_HAL_WEISSEXCEPTION_H
29 
30 #include "DeviceException.h"
31 
32 namespace rl
33 {
34  namespace hal
35  {
37  {
38  public:
39  enum Code
40  {
71  CODE_FILE_EXISTS = 30
72  };
73 
74  WeissException(const Code& code);
75 
76  virtual ~WeissException() throw();
77 
78  Code getCode() const;
79 
80  virtual const char* what() const throw();
81 
82  protected:
83 
84  private:
86  };
87  };
88 }
89 
90 #endif // RL_HAL_WEISSEXCEPTION_H
rl::hal::WeissException::CODE_INSUFFICIENT_RESOURCES
@ CODE_INSUFFICIENT_RESOURCES
Definition: WeissException.h:51
rl::hal::WeissException::code
Code code
Definition: WeissException.h:85
rl::hal::WeissException::~WeissException
virtual ~WeissException()
Definition: WeissException.cpp:39
rl::hal::WeissException::CODE_WRITE_ERROR
@ CODE_WRITE_ERROR
Definition: WeissException.h:50
rl::hal::WeissException::CODE_RANGE_ERROR
@ CODE_RANGE_ERROR
Definition: WeissException.h:69
rl::hal::WeissException::CODE_ALREADY_OPEN
@ CODE_ALREADY_OPEN
Definition: WeissException.h:58
rl::hal::WeissException::CODE_FEATURE_NOT_SUPPORTED
@ CODE_FEATURE_NOT_SUPPORTED
Definition: WeissException.h:46
rl::hal::WeissException::CODE_INVALID_HANDLE
@ CODE_INVALID_HANDLE
Definition: WeissException.h:61
rl::hal::DeviceException
Definition: DeviceException.h:37
rl::hal::WeissException::CODE_NOT_INITIALIZED
@ CODE_NOT_INITIALIZED
Definition: WeissException.h:44
rl::hal::WeissException::CODE_NOT_AVAILABLE
@ CODE_NOT_AVAILABLE
Definition: WeissException.h:42
rl::hal::WeissException::WeissException
WeissException(const Code &code)
Definition: WeissException.cpp:33
rl::hal::WeissException::what
virtual const char * what() const
Definition: WeissException.cpp:50
rl::hal::WeissException::CODE_NOT_OPEN
@ CODE_NOT_OPEN
Definition: WeissException.h:63
DeviceException.h
rl::hal::WeissException::CODE_COMMAND_ABORTED
@ CODE_COMMAND_ABORTED
Definition: WeissException.h:60
rl::hal::WeissException
Definition: WeissException.h:37
rl::hal::WeissException::CODE_CHECKSUM_ERROR
@ CODE_CHECKSUM_ERROR
Definition: WeissException.h:52
rl::hal::WeissException::CODE_COMMAND_FORMAT_ERROR
@ CODE_COMMAND_FORMAT_ERROR
Definition: WeissException.h:56
rl::hal::WeissException::CODE_FILE_EXISTS
@ CODE_FILE_EXISTS
Definition: WeissException.h:71
rl::hal::WeissException::CODE_NO_SENSOR
@ CODE_NO_SENSOR
Definition: WeissException.h:43
rl::hal::WeissException::getCode
Code getCode() const
Definition: WeissException.cpp:44
rl::hal::WeissException::Code
Code
Definition: WeissException.h:40
rl::hal::WeissException::CODE_NOT_ENOUGH_PARAMS
@ CODE_NOT_ENOUGH_PARAMS
Definition: WeissException.h:54
rl::hal::WeissException::CODE_TIMEOUT
@ CODE_TIMEOUT
Definition: WeissException.h:48
rl::hal::WeissException::CODE_ACCESS_DENIED
@ CODE_ACCESS_DENIED
Definition: WeissException.h:57
rl::hal::WeissException::CODE_IO_ERROR
@ CODE_IO_ERROR
Definition: WeissException.h:64
rl::hal::WeissException::CODE_COMMAND_PENDING
@ CODE_COMMAND_PENDING
Definition: WeissException.h:67
rl::hal::WeissException::CODE_NOT_FOUND
@ CODE_NOT_FOUND
Definition: WeissException.h:62
rl::hal::WeissException::CODE_INCONSISTENT_DATA
@ CODE_INCONSISTENT_DATA
Definition: WeissException.h:47
rl::hal::WeissException::CODE_NO_PARAM_EXPECTED
@ CODE_NO_PARAM_EXPECTED
Definition: WeissException.h:53
rl::hal::WeissException::CODE_AXIS_BLOCKED
@ CODE_AXIS_BLOCKED
Definition: WeissException.h:70
rl::hal::WeissException::CODE_OVERRUN
@ CODE_OVERRUN
Definition: WeissException.h:68
rl::hal::WeissException::CODE_READ_ERROR
@ CODE_READ_ERROR
Definition: WeissException.h:49
rl::hal::WeissException::CODE_INVALID_PARAMETER
@ CODE_INVALID_PARAMETER
Definition: WeissException.h:65
rl::hal::WeissException::CODE_INDEX_OUT_OF_BOUNDS
@ CODE_INDEX_OUT_OF_BOUNDS
Definition: WeissException.h:66
rl::hal::WeissException::CODE_ALREADY_RUNNING
@ CODE_ALREADY_RUNNING
Definition: WeissException.h:45
rl::hal::WeissException::CODE_SUCCESS
@ CODE_SUCCESS
Definition: WeissException.h:41
rl::hal::WeissException::CODE_COMMAND_UNKNOWN
@ CODE_COMMAND_UNKNOWN
Definition: WeissException.h:55
rl::hal::WeissException::CODE_COMMAND_FAILED
@ CODE_COMMAND_FAILED
Definition: WeissException.h:59
rl
Robotics Library.
Definition: AnalogInput.cpp:30