-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use code from legacy repo for type guard
- Loading branch information
John Schulz
committed
Sep 7, 2020
1 parent
663bfac
commit 8e26047
Showing
3 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
/* eslint-disable max-classes-per-file */ | ||
export { defaultIngestErrorHandler } from './handlers'; | ||
|
||
export class IngestManagerError extends Error { | ||
constructor(message?: string) { | ||
super(message); | ||
this.name = this.constructor.name; // for stack traces | ||
} | ||
} | ||
export class RegistryError extends IngestManagerError {} | ||
export class RegistryConnectionError extends RegistryError {} | ||
export class RegistryResponseError extends RegistryError {} | ||
export class PackageNotFoundError extends IngestManagerError {} | ||
export class PackageOutdatedError extends IngestManagerError {} |