class Mint::Error

Overview

Represents a raisable rich and descriptive error.

Defined in:

errorable.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : Symbol) #

[View source]

Instance Method Detail

def block(&) #

[View source]
def block(contents : String) #

[View source]

[View source]
def bold(value : String) #

[View source]
def build(&) #

[View source]
def code(value : String) #

[View source]
def expected(subject : String, got : String) #

[View source]
def expected(subject : TypeChecker::Checkable | String, got : TypeChecker::Checkable) #

[View source]
def name : Symbol #

[View source]
def snippet(value : String, node : Ast::Node | TypeChecker::Checkable | String) #

[View source]
def snippet(value : Parser) #

[View source]
def snippet(value : String | Ast::Node | TypeChecker::Checkable) #

[View source]
def text(value : String) #

[View source]
def to_html(reload : Bool = false) #

[View source]
def to_terminal #

[View source]