import { ErrorThatHandlesItsOwnResponse , ElasticsearchError } from './types' ; import { getEsErrorMessage } from './es_error_parser' ; export function isErrorThatHandlesItsOwnResponse ( e ) { return typeof ( e as ErrorThatHandlesItsOwnResponse ) . sendResponse === 'function' ; } export type { ErrorThatHandlesItsOwnResponse , ElasticsearchError } ; export { getEsErrorMessage } ; export type { AlertTypeDisabledReason } from './alert_type_disabled' ; export { AlertTypeDisabledError } from './alert_type_disabled' ;