export const getCustomErrorClass = ( className ) => { const CustomError = class extends Error { constructor ( message ? ) { super ( message ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; Object . defineProperty ( this , 'name' , { value : className } ) ; } } ; Object . defineProperty ( CustomError , 'name' , { value : className } ) ; return CustomError ; } ; export const MLClusterClientUninitialized = getCustomErrorClass ( 'MLClusterClientUninitialized' ) ; export const MLUISettingsClientUninitialized = getCustomErrorClass ( 'MLUISettingsClientUninitialized' ) ; export const MLFieldFormatRegistryUninitialized = getCustomErrorClass ( 'MLFieldFormatRegistryUninitialized' ) ;