UNPKG

@biorate/schema-registry

Version:

Schema registry connector

14 lines (13 loc) 390 B
import { BaseError } from '@biorate/errors'; export class SchemaRegistryCantConnectError extends BaseError { constructor(e) { super(`Can't connect to schema registry: [%s]`, [e.message]); } } export class SchemaRegistryAvroSchemaParseError extends BaseError { constructor(errors) { super('%s', [errors.join('; ')], { status: 400, }); } }