-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(router): throw exceptions instead return null
- Loading branch information
Chris Miaskowski
committed
Oct 19, 2018
1 parent
3e57354
commit ebb6d2c
Showing
4 changed files
with
93 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const ROUTE_DISAMBIGUATION_ERROR = new Error('Could not disambiguate the given route.'); | ||
export const NO_RESOURCE_PROVIDED_ERROR = new Error('Route not resolved, no resource provided.'); | ||
export const NONE_METHOD_MATCHED_ERROR = new Error('Route not resolved, none method matched.'); | ||
export const NONE_PATH_MATCHED_ERROR = new Error('Route not resolved, none path matched.'); | ||
export const NONE_SERVER_MATCHED_ERROR = new Error('Route not resolved, none server matched.'); | ||
export const NO_SERVER_CONFIGURATION_PROVIDED_ERROR = new Error( | ||
'Route not resolved, no server configuration provided.' | ||
); |
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