{"version":3,"file":"errors.mjs","names":[],"sources":["../../src/client/errors.ts"],"sourcesContent":["import { BaseError } from \"~/utils/base-error\";\n\n/**\n * Indicates an error directly caused by some bad server message being received,\n * e.g. a msg_channel_suspended when trying to join a channel.\n */\nexport class MessageError extends BaseError {}\n\n/**\n * Marks an error that mandates a disconnect of a single connection,\n * but must not necessarily mean that a multi-connection client as a whole must disconnect\n */\nexport class ConnectionError extends BaseError {}\n\n/**\n * Marks an error that mandates a disconnect of a single connection\n * that was caused by a bad message (protocol error) being received from the server,\n * e.g. an unparseable IRC message or an invalid response to some action.\n */\nexport class ProtocolError extends ConnectionError {}\n\n/**\n * Marks an error that mandates a disconnect of the whole client and all its connections,\n * e.g. a login error.\n */\nexport class ClientError extends ConnectionError {}\n"],"mappings":";;;;;;AAMA,IAAa,eAAb,cAAkC,UAAU;;;;;AAM5C,IAAa,kBAAb,cAAqC,UAAU;;;;;;AAO/C,IAAa,gBAAb,cAAmC,gBAAgB;;;;;AAMnD,IAAa,cAAb,cAAiC,gBAAgB"}