libvisiontransfer  6.4.0
exceptions.h
1 /*******************************************************************************
2  * Copyright (c) 2019 Nerian Vision GmbH
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *******************************************************************************/
14 
15 #ifndef VISIONTRANSFER_EXCEPTIONS_H
16 #define VISIONTRANSFER_EXCEPTIONS_H
17 
18 #include <stdexcept>
19 
20 namespace visiontransfer {
21 
25 class ProtocolException: public std::runtime_error {
26 public:
27  ProtocolException(std::string msg): std::runtime_error(msg) {}
28 };
29 
33 class TransferException: public std::runtime_error {
34 public:
35  TransferException(std::string msg): std::runtime_error(msg) {}
36 };
37 
41 class ParameterException: public std::runtime_error {
42 public:
43  ParameterException(std::string msg): std::runtime_error(msg) {}
44 };
45 
46 } // namespace
47 
48 #endif
Exception class that is used for all parameter-related exceptions.
Definition: exceptions.h:41
Exception class that is used for all transfer exceptions.
Definition: exceptions.h:33
Exception class that is used for all protocol exceptions.
Definition: exceptions.h:25
Nerian Vision Technologies