class Mint::Error
 
  - Mint::Error
 - Exception
 - Reference
 - Object
 
Overview
Represents a raisable rich and descriptive error. The error can be built using a DLS.
Defined in:
errorable.crConstructors
Instance Method Summary
- #block(&)
 - #block(contents : String)
 - 
        #blocks : Array(Array(Mint::Error::Bold | Mint::Error::Code | Mint::Error::Text) | Mint::Error::Snippet)
        
          
The message is based on blocks of elements.
 - #bold(value : String)
 - #code(value : String)
 - #expected(subject : String, got : String)
 - #expected(subject : TypeChecker::Checkable | String, got : TypeChecker::Checkable)
 - 
        #name : Symbol
        
          
The name of the error.
 - #snippet(value : String, node : SnippetTarget)
 - #snippet(value : SnippetTarget)
 - #text(value : String)
 - 
        #to_s
        
          
Returns a nicely readable and concise string representation of this object, typically intended for users.
 - #to_terminal
 
Constructor Detail
Instance Method Detail
        
        def blocks : Array(Array(Mint::Error::Bold | Mint::Error::Code | Mint::Error::Text) | Mint::Error::Snippet)
        #
      
      
        The message is based on blocks of elements. The blocks are separated by double new lines.
        
        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.