UNPKG

@kafkajs/confluent-schema-registry

Version:

ConfluentSchemaRegistry is a library that makes it easier to interact with the Confluent schema registry, it provides convenient methods to encode, decode and register new schemas using the Apache Avro serialization format.

27 lines 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfluentSchemaRegistryValidationError = exports.ConfluentSchemaRegistryInvalidSchemaError = exports.ConfluentSchemaRegistryCompatibilityError = exports.ConfluentSchemaRegistryArgumentError = exports.ConfluentSchemaRegistryError = void 0; class ConfluentSchemaRegistryError extends Error { constructor(error) { super(error.message || error); this.name = this.constructor.name; } } exports.ConfluentSchemaRegistryError = ConfluentSchemaRegistryError; class ConfluentSchemaRegistryArgumentError extends ConfluentSchemaRegistryError { } exports.ConfluentSchemaRegistryArgumentError = ConfluentSchemaRegistryArgumentError; class ConfluentSchemaRegistryCompatibilityError extends ConfluentSchemaRegistryError { } exports.ConfluentSchemaRegistryCompatibilityError = ConfluentSchemaRegistryCompatibilityError; class ConfluentSchemaRegistryInvalidSchemaError extends ConfluentSchemaRegistryError { } exports.ConfluentSchemaRegistryInvalidSchemaError = ConfluentSchemaRegistryInvalidSchemaError; class ConfluentSchemaRegistryValidationError extends ConfluentSchemaRegistryError { constructor(error, paths) { super(error); this.paths = paths; } } exports.ConfluentSchemaRegistryValidationError = ConfluentSchemaRegistryValidationError; //# sourceMappingURL=errors.js.map