| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Ginger.RuntimeError
Synopsis
- data RuntimeError
- = ArgumentError Text Text Text Text
- | TagError Text Text Text
- | NonCallableObjectError Text
- | NotInScopeError Text
- | NotImplementedError Text
- | NumericError Text Text
- | TemplateFileNotFoundError Text
- | TemplateParseError Text Text
- | FatalError Text
- | GenericError Text
- | PositionedError !SourcePosition !RuntimeError
- prettyRuntimeError :: RuntimeError -> String
Documentation
data RuntimeError Source #
Constructors
| ArgumentError | |
| TagError | |
| NonCallableObjectError Text | Object that was attempted to be used as a callable |
| NotInScopeError Text | Identifier |
| NotImplementedError Text | The thing that isn't implemented |
| NumericError | |
| TemplateFileNotFoundError Text | Template name |
| TemplateParseError | |
| FatalError Text | |
| GenericError Text | |
| PositionedError !SourcePosition !RuntimeError | |
Instances
prettyRuntimeError :: RuntimeError -> String Source #
Pretty-print a RuntimeError. The output is meant to be useful as a
user-facing error message.