clockUtils  1.1
errors.h
Go to the documentation of this file.
1 /*
2  * clockUtils
3  * Copyright (2015) Michael Baer, Daniel Bonrath, All rights reserved.
4  *
5  * This file is part of clockUtils; clockUtils is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef __CLOCKUTILS_CLOCKERRORS_H__
26 #define __CLOCKUTILS_CLOCKERRORS_H__
27 
28 namespace clockUtils {
29 
30  enum class ClockError {
31  SUCCESS,
32  // general
33  NOT_READY,
34  TIMEOUT,
37  IN_PROGRESS,
38  WRONG_TYPE,
39  WRONG_SYNTAX,
40  FILENOTFOUND,
42  // sockets
43  INVALID_IP,
44  INVALID_PORT,
48  // iniParser
50  // container
51  NO_ELEMENT,
53  //
54  UNKNOWN,
56  };
57 
58 } /* namespace clockUtils */
59 
60 #endif /* __CLOCKUTILS_CLOCKERRORS_H__ */
61 
0x5 current action already in progress
0x12 an error occured, but the error isn't wrapped yet
0x6 value couldn't be cast in expected type
0x7 syntax of parsed file is not as expected
0xD connecting sockets failed
0x11 no more space available in container
0x1 not initialized yet
0x3 parameters are invalid
0xE using a method for connected sockets on unconnected socket
0x10 no element available
0x0 method call succeeded
0x8 file does not exist
0x2 waiting time expired
0xA ip address invalid
0xC a socket is already bound to this address
0x4 library is used in wrong way
ClockError
Definition: errors.h:30