Files
factorio-clusterio/lib/errors.js
T
Hornwitser 7a2abaa5db Daemonize slave
Rework client.js to support running multiple instances at once and be
managed remotely and implement the neccessary communication
infrastructure for this.

Due to circular dependencies on the implementation of this the master
branch is significantly broken after this.
2019-11-23 15:16:47 +01:00

21 lines
387 B
JavaScript

/**
* Errors thrown in Clusterio
* @module
*/
class CommandError extends Error { }
class RequestError extends Error { }
// Signal for messages that fail validation
class InvalidMessage extends Error { }
// Errror class for known errors occuring during startup
class StartupError extends Error { }
module.exports = {
CommandError,
RequestError,
InvalidMessage,
StartupError,
}