Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
exception.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Contact: Jan Olszak <j.olszak@samsung.com>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License
17  */
18 
26 #ifndef SERVER_EXCEPTION_HPP
27 #define SERVER_EXCEPTION_HPP
28 
29 #include "base-exception.hpp"
30 
31 
32 namespace vasum {
33 
34 
39 
40  explicit ServerException(const std::string& error) : VasumException(error) {}
41 };
42 
48 
49  explicit ZoneOperationException(const std::string& error) : ServerException(error) {}
50 };
51 
56 
57  explicit InvalidZoneIdException(const std::string& error) : ServerException(error) {}
58 };
59 
64 
65  explicit ZoneConnectionException(const std::string& error) : ServerException(error) {}
66 };
67 
72 
73  explicit HostConnectionException(const std::string& error) : ServerException(error) {}
74 };
75 
81 
82  explicit InputMonitorException(const std::string& error) : ServerException(error) {}
83 };
84 
86 
87  explicit TimeoutException(const std::string& error) : InputMonitorException (error) {}
88 };
89 
90 }
91 
92 
93 #endif // SERVER_EXCEPTION_HPP
Vasum base exception.
Exception during performing an operation by input monitor, e.g.
Definition: exception.hpp:80
HostConnectionException(const std::string &error)
Definition: exception.hpp:73
TimeoutException(const std::string &error)
Definition: exception.hpp:87
InvalidZoneIdException(const std::string &error)
Definition: exception.hpp:57
InputMonitorException(const std::string &error)
Definition: exception.hpp:82
Error occurred during an attempt to perform an operation on a zone, e.g.
Definition: exception.hpp:47
ServerException(const std::string &error)
Definition: exception.hpp:40
Base class for exceptions in Vasum Server.
Definition: exception.hpp:38
Definition: exception.hpp:85
Base class vasum exceptions.
Definition: base-exception.hpp:39
ZoneOperationException(const std::string &error)
Definition: exception.hpp:49
Invalid zone id.
Definition: exception.hpp:55
Exception during performing an operation on a zone connection.
Definition: exception.hpp:63
ZoneConnectionException(const std::string &error)
Definition: exception.hpp:65
Exception during performing an operation on a host connection.
Definition: exception.hpp:71