-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(parsepagename): add guard for markdownpage * refactor(types/utils): update type def and shift util function otu * feat(config): add parsing * feat(pageservice): refactor to have stronger guarantee on method * chore(errors): add new error types * chore(configService): add precondition for pathinfo * refactor(types): rejig * refactor(rr service): more elaborate parsing n defaults * ref(review): update call sites and add new method * chore(services): init service * fix(rr): change andThen to map * chore(rr): ref to fiot new api * chore(error): add status code * fix(sites): update typing and refactor for result * chore(review): update review dto * ref(types): add more github types * chore(pages): add docs * fix(tests): fixed tests and services * chore(notifications spec): add missing imports * test(tests): fixed all tests * chore(types): update types and add default return
- Loading branch information
Showing
26 changed files
with
673 additions
and
391 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,7 @@ | ||
import { BaseIsomerError } from "@root/errors/BaseError" | ||
|
||
export default class ConfigParseError extends BaseIsomerError { | ||
constructor(fileName: string) { | ||
super(500, `The given file: ${fileName} was not a config file!`) | ||
} | ||
} |
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,9 @@ | ||
import { BaseIsomerError } from "@root/errors/BaseError" | ||
|
||
export default class NetworkError extends BaseIsomerError { | ||
constructor( | ||
message = "An error occurred with the network whilst processing your request. Please try again later." | ||
) { | ||
super(500, message) | ||
} | ||
} |
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,7 @@ | ||
import { BaseIsomerError } from "@root/errors/BaseError" | ||
|
||
export default class PageParseError extends BaseIsomerError { | ||
constructor(fileName: string) { | ||
super(500, `The given file: ${fileName} was not a page!`) | ||
} | ||
} |
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
Oops, something went wrong.