HappyX Exceptions ๐งจ
Describes all defect types that can be thrown
Types
HpxAppRouteDefect = object of Defect
- Throws when server routes syntax is invalid
HpxBuildHtmlDefect = object of Defect
- Throws when buildHtml syntax is invalid
HpxBuildJsDefect = object of Defect
- Throws when buildJs syntax is invalid
HpxBuildStyleDefect = object of Defect
- Throws when buildStyle syntax is invalid
HpxComponentDefect = object of Defect
- Throws when component declaration syntax is invalid
HpxCorsDefect = object of Defect
- Throws when regCORS syntax is invalid
HpxModelSyntaxDefect = object of Defect
- Throws when model syntax declaaration is invalid
HpxMountDefect = object of Defect
- Throws when mounting syntax is invalid
HpxPathParamDefect = object of Defect
- Throws when path params is wrong
HpxServeRouteDefect = object of Defect
- Throws when server routes syntax is invalid
HpxSyntaxSugarDefect = object of Defect
- Throws on syntax sugar errors
HpxTranslatableDefect = object of Defect
- Throws on invalid translatable syntax
HpxUseDefect = object of Defect
- Throws on invalid use syntax
Procs
proc throwDefect(defect: typedesc; msg: string; lineInfo: LineInfo)
- Throws HappyX errors