class
Mint::Error
- Mint::Error
- Exception
- Reference
- Object
Overview
Represents a raisable rich and descriptive error.
Included Modules
Defined in:
error.crConstructors
Instance Method Summary
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #to_terminal
Instance methods inherited from module Mint::Message
block(&)block(contents : String) block, blocks blocks, bold(value : String) bold, code(value : String) code, expected(subject : String, got : String)
expected(subject : TypeChecker::Checkable | String, got : TypeChecker::Checkable) expected, locations : Array(SnippetData) locations, name : Symbol name, snippet(value : String, node : SnippetTarget)
snippet(value : SnippetTarget) snippet, text(value : String) text, to_terminal(title : String) to_terminal
Constructor Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.