mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-07 15:01:37 +03:00
Add docs for FatalError.build.
This commit is contained in:
parent
1bc75789a5
commit
922d789472
@ -1,7 +1,4 @@
|
|||||||
module FatalError exposing
|
module FatalError exposing (FatalError, build, fromString, recoverable)
|
||||||
( FatalError, fromString, recoverable
|
|
||||||
, build
|
|
||||||
)
|
|
||||||
|
|
||||||
{-| The Elm language doesn't have the concept of exceptions or special control flow for errors. It just has
|
{-| The Elm language doesn't have the concept of exceptions or special control flow for errors. It just has
|
||||||
Custom Types, and by convention types like `Result` and the `Err` variant are used to represent possible failure states
|
Custom Types, and by convention types like `Result` and the `Err` variant are used to represent possible failure states
|
||||||
@ -57,7 +54,7 @@ issue.
|
|||||||
In the case of server-rendered Routes (`RouteBuilder.serverRender`), `elm-pages` will show your 500 error page
|
In the case of server-rendered Routes (`RouteBuilder.serverRender`), `elm-pages` will show your 500 error page
|
||||||
when these errors occur.
|
when these errors occur.
|
||||||
|
|
||||||
@docs FatalError, fromString, recoverable
|
@docs FatalError, build, fromString, recoverable
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
@ -69,7 +66,8 @@ type alias FatalError =
|
|||||||
Pages.Internal.FatalError.FatalError
|
Pages.Internal.FatalError.FatalError
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
{-| Create a FatalError with a title and body.
|
||||||
|
-}
|
||||||
build : { title : String, body : String } -> FatalError
|
build : { title : String, body : String } -> FatalError
|
||||||
build info =
|
build info =
|
||||||
Pages.Internal.FatalError.FatalError info
|
Pages.Internal.FatalError.FatalError info
|
||||||
|
Loading…
Reference in New Issue
Block a user