UNPKG

@biorate/schema-registry

Version:

Schema registry connector

19 lines 753 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SchemaRegistryAvroSchemaParseError = exports.SchemaRegistryCantConnectError = void 0; const errors_1 = require("@biorate/errors"); class SchemaRegistryCantConnectError extends errors_1.BaseError { constructor(e) { super(`Can't connect to schema registry: [%s]`, [e.message]); } } exports.SchemaRegistryCantConnectError = SchemaRegistryCantConnectError; class SchemaRegistryAvroSchemaParseError extends errors_1.BaseError { constructor(errors) { super('%s', [errors.join('; ')], { status: 400, }); } } exports.SchemaRegistryAvroSchemaParseError = SchemaRegistryAvroSchemaParseError; //# sourceMappingURL=errors.js.map