EngageSoftware / elm-engage-common / Engage.UI.Error

UI.Error


type Status
    = Unknown
    | None ({ infos : List String })
    | Error ({ reasons : List String })
    | Ok

The Status type

error : { namespace : Engage.Namespace.Namespace } -> Status -> Html msg

Get the error view

errorLocalized : { namespace : Engage.Namespace.Namespace, localize : String -> String } -> Status -> Html msg

Get the error localized view

inlineError : { namespace : Engage.Namespace.Namespace, status : Status, onChange : Engage.UI.Message.State -> msg } -> Engage.UI.Message.State -> Html msg

Get the inline error view

isError : Status -> Maybe Basics.Bool

Check if the Status is Error

isNone : Status -> Maybe Basics.Bool

Check if the Status is None

localizeStatus : (String -> String) -> Status -> Status

Localize the Status

merge : Status -> Status -> Status

Merge two statuses