MongoDB  2.7.0
exit_code.h
Go to the documentation of this file.
1 
6 /* Copyright 2009 10gen Inc.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #pragma once
22 
23 namespace mongo {
24 
25  enum ExitCode {
26  EXIT_CLEAN = 0 ,
27  EXIT_BADOPTIONS = 2 ,
28  EXIT_REPLICATION_ERROR = 3 ,
29  EXIT_NEED_UPGRADE = 4 ,
30  EXIT_SHARDING_ERROR = 5 ,
31  EXIT_KILL = 12 ,
32  EXIT_ABRUPT = 14 ,
33  EXIT_NTSERVICE_ERROR = 20 ,
34  EXIT_JAVA = 21 ,
35  EXIT_OOM_MALLOC = 42 ,
36  EXIT_OOM_REALLOC = 43 ,
37  EXIT_FS = 45 ,
38  EXIT_CLOCK_SKEW = 47 , // OpTime clock skew, deprecated
39  EXIT_NET_ERROR = 48 ,
40  EXIT_WINDOWS_SERVICE_STOP = 49 ,
41  EXIT_POSSIBLE_CORRUPTION = 60 , // this means we detected a possible corruption situation, like a buf overflow
42  EXIT_UNCAUGHT = 100 , // top level exception that wasn't caught
43  EXIT_TEST = 101
44  };
45 
46 } // namespace mongo