23 lines
798 B
JavaScript
23 lines
798 B
JavaScript
/**
|
|
* @fileOverview Node.js Exit Codes for Main Process
|
|
* @preserve Copyright 2014-2017 Comcarde Ltd.
|
|
* @author Keith Symington
|
|
* @see #bridge_server-core
|
|
*/
|
|
|
|
/**
|
|
* Error constants.
|
|
*/
|
|
exports.EXIT_CODE_SUCCESS = 0;
|
|
exports.EXIT_CODE_DATABASE_NOT_CLOSED = 1;
|
|
exports.EXIT_CODE_DATABASE_WRITE_ERROR = 2;
|
|
exports.EXIT_CODE_DATABASE_OFFLINE = 3;
|
|
exports.EXIT_CODE_FORCED_SHUTDOWN = 4;
|
|
exports.EXIT_CODE_NO_ENVIRONMENT = 5; // Note this is used before definition in node_server.js
|
|
exports.EXIT_CODE_MONGODB_SSL_PEM_NOT_FOUND = 6;
|
|
exports.EXIT_CODE_NO_NODE_ENV = 7;
|
|
exports.EXIT_CODE_NO_ENVIRONMENT_VARS = 8;
|
|
exports.EXIT_CODE_NO_ACQUISITION_SERVER = 9;
|
|
exports.EXIT_CODE_NO_DEFAULT_IMAGES = 10;
|
|
exports.EXIT_CODE_CONFIG_FILE_ERROR = 11; // Note this is used before definition in node_server.js
|