@kubb/core
Version:
Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.
15 lines (11 loc) • 372 B
text/typescript
export class ValidationPluginError extends Error {}
export class BuildError extends Error {
cause: Error | undefined
errors: Array<Error>
constructor(message: string, options: { cause?: Error; errors: Array<Error> }) {
super(message, { cause: options.cause })
this.name = 'BuildError'
this.cause = options.cause
this.errors = options.errors
}
}