| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Jordan.Types.JSONError
Documentation
Constructors
| ErrorMesage Text | Generic, user-provided error message |
| ErrorInvalidJSON | JSON was not up to spec |
| ErrorBadType | Bad type encountered (Expected, Actual) |
Fields
| |
| ErrorNoValue | There was no value for this JSON |
| ErrorBadTextConstant | Text constant was wrong. |
Fields
| |
| ErrorBadObject JSONObjectError | An object had some bad values. |
| ErrorBadArray JSONArrayError | An array had some bad indices |
| ErrorChoice !(Set JSONError) | One of multiple possible errors. |
Instances
newtype JSONObjectError Source #
Constructors
| MkJSONObjectError (Map Text JSONError) |
Instances
singleObjectError :: Text -> JSONError -> JSONObjectError Source #
newtype JSONArrayError Source #
Constructors
| MkJSONArrayError (Map Integer JSONError) |
Instances
prettyPrintJSONError :: JSONError -> Text Source #