UNPKG

@gluestack-v2/glue-plugin-service-gateway

Version:

Gluestack V2 service Gateway Plugin

32 lines (30 loc) 657 B
// const { MoleculerRetryableError } = require("moleculer/src/errors"); /** * Error that should be thrown when the Minio Backend can not be pinged * * @class MinioPingError * @extends {MoleculerRetryableError} */ module.exports = class MinioPingError { /** * Creates an instance of MinioPingError. * * @param {String?} message * @param {Number?} code * @param {String?} type * @param {any} data * * @memberof MinioPingError */ constructor( message = "Minio Backend not reachable", code = 502, type = "MINIO_PING_ERROR", data = {} ) { // super(message);s this.code = code; this.type = type; this.data = data; } };