Module

Simple.Ajax.Errors

Package
purescript-simple-ajax
Repository
dariooddenino/purescript-simple-ajax

#BasicError Source

#BasicErrorRow Source

type BasicErrorRow e = (affjaxError :: Error, badRequest :: String, forbidden :: Unit, methodNotAllowed :: Unit, notFound :: Unit, serverError :: String, unAuthorized :: Unit | e)

#ParseError Source

type ParseError = (parseError :: JsonDecodeError)

#HTTPError Source

type HTTPError = BasicError ()

Basic error type containing the common http errors.

#AjaxError Source

type AjaxError = BasicError ParseError

Extends HTTPError to add json parsing errors.

#_parseError Source

_parseError :: Proxy @Symbol "parseError"

#_badRequest Source

_badRequest :: Proxy @Symbol "badRequest"

#_unAuthorized Source

_unAuthorized :: Proxy @Symbol "unAuthorized"

#_forbidden Source

_forbidden :: Proxy @Symbol "forbidden"

#_notFound Source

_notFound :: Proxy @Symbol "notFound"

#_methodNotAllowed Source

_methodNotAllowed :: Proxy @Symbol "methodNotAllowed"

#_serverError Source

_serverError :: Proxy @Symbol "serverError"

#_affjaxError Source

_affjaxError :: Proxy @Symbol "affjaxError"