-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(reference): consolidate error hierarchies (#3487)
- Loading branch information
Showing
16 changed files
with
62 additions
and
49 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/apidom-reference/src/errors/MaximumResolverDepthError.ts
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import ResolverError from './ResolverError'; | ||
import ResolveError from './ResolveError'; | ||
|
||
class MaximumResolverDepthError extends ResolverError {} | ||
class MaximumResolverDepthError extends ResolveError {} | ||
|
||
export default MaximumResolverDepthError; |
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,5 @@ | ||
import { ApiDOMError } from '@swagger-api/apidom-error'; | ||
|
||
class ParseError extends ApiDOMError {} | ||
|
||
export default ParseError; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { ApiDOMError } from '@swagger-api/apidom-error'; | ||
import ParseError from './ParseError'; | ||
|
||
class ParserError extends ApiDOMError {} | ||
class ParserError extends ParseError {} | ||
|
||
export default ParserError; |
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,5 @@ | ||
import { ApiDOMError } from '@swagger-api/apidom-error'; | ||
|
||
class ResolveError extends ApiDOMError {} | ||
|
||
export default ResolveError; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { ApiDOMError } from '@swagger-api/apidom-error'; | ||
import ResolveError from './ResolveError'; | ||
|
||
class ResolverError extends ApiDOMError {} | ||
class ResolverError extends ResolveError {} | ||
|
||
export default ResolverError; |
4 changes: 2 additions & 2 deletions
4
packages/apidom-reference/src/errors/UnmatchedDereferenceStrategyError.ts
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import ParserError from './ParserError'; | ||
import DereferenceError from './DereferenceError'; | ||
|
||
class UnmatchedDereferenceStrategyError extends ParserError {} | ||
class UnmatchedDereferenceStrategyError extends DereferenceError {} | ||
|
||
export default UnmatchedDereferenceStrategyError; |
4 changes: 2 additions & 2 deletions
4
packages/apidom-reference/src/errors/UnmatchedResolveStrategyError.ts
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import ParserError from './ParserError'; | ||
import ResolveError from './ResolveError'; | ||
|
||
class UnmatchedResolveStrategyError extends ParserError {} | ||
class UnmatchedResolveStrategyError extends ResolveError {} | ||
|
||
export default UnmatchedResolveStrategyError; |
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
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
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