mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
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.
21 lines
387 B
JavaScript
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,
|
|
}
|