vyzenix-mcstatus
Version:
Professional Node.js package for checking Minecraft server status with web interface and API support.
26 lines (23 loc) • 525 B
JavaScript
class MinecraftError extends Error {
constructor(message) {
super(message);
this.name = 'MinecraftError';
}
}
class TimeoutError extends MinecraftError {
constructor() {
super('Connection timeout');
this.name = 'TimeoutError';
}
}
class ProtocolError extends MinecraftError {
constructor(message) {
super(message);
this.name = 'ProtocolError';
}
}
module.exports = {
MinecraftError,
TimeoutError,
ProtocolError
};