Falaise  4.0.1
SuperNEMO Software Toolkit
exitcodes.h
Go to the documentation of this file.
1 //! \file exitcodes.h
2 //! \brief Provide commonly used exit status codes
3 //! \details Applications need a way to communicate exit status to
4 //! their caller. Provide a common set of exit statuses
5 //! based on the 4.3BSD sysexits.h
6 //
7 // Copyright (c) 2013 by Ben Morgan <bmorgan.warwick@gmail.com>
8 // Copyright (c) 2013 by The University of Warwick
9 //
10 // This file is part of Falaise.
11 //
12 // Falaise is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // Falaise is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with Falaise. If not, see <http://www.gnu.org/licenses/>.
24 
25 #ifndef FALAISE_EXITCODES_H
26 #define FALAISE_EXITCODES_H
27 
28 namespace falaise {
29 //! enumerator holding exit code values
30 enum exit_code {
31  EXIT_OK = 0, ///< Successful termination
32  EXIT_USAGE = 64, ///< Usage error, e.g. incorrect command line
33  EXIT_UNAVAILABLE = 69 ///< Service unavailable
34 };
35 } // namespace falaise
36 
37 #endif // FALAISE_EXITCODES_H
exit_code
enumerator holding exit code values
Definition: exitcodes.h:30
Definition: metadata_utils.h:35
Service unavailable.
Definition: exitcodes.h:33
Usage error, e.g. incorrect command line.
Definition: exitcodes.h:32
Successful termination.
Definition: exitcodes.h:31