import type { NodesVersionCompatibility } from 'src/core/server' ; export class CompatibilityError extends Error { constructor ( private meta ) { super ( 'Compatibility Error' ) ; Error . captureStackTrace ( this , CompatibilityError ) ; this . name = 'CompatibilityError' ; this . message = meta . message ! ; } public get elasticsearchVersion ( ) { return this . meta . incompatibleNodes [ 0 ] . version ; } public get kibanaVersion ( ) { return this . meta . kibanaVersion ; } }