This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from Wikia/XW-3221
XW-3221 | Handle not a valid wiki redirect
- Loading branch information
Showing
4 changed files
with
75 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {defineError} from 'ember-exex/error'; | ||
|
||
const WikiVariablesFetchError = defineError({ | ||
name: 'WikiVariablesFetchError', | ||
message: `Wiki variables couldn't be fetched` | ||
}); | ||
|
||
const DesignSystemFetchError = defineError({ | ||
name: 'DesignSystemFetchError', | ||
message: `Design System data couldn't be fetched` | ||
}); | ||
|
||
const DontLogMeError = defineError({ | ||
name: 'DontLogMeError', | ||
message: `Hack: this error was created only to stop executing Ember and redirect immediately` | ||
}); | ||
|
||
const NonJsonApiResponseError = defineError({ | ||
name: 'NonJsonApiResponseError', | ||
message: `The API response was in incorrect format`, | ||
extends: DontLogMeError | ||
}); | ||
|
||
export { | ||
WikiVariablesFetchError, | ||
DesignSystemFetchError, | ||
DontLogMeError, | ||
NonJsonApiResponseError | ||
}; |
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