Skip to content

abstract class Crystal::CodeError
inherits Crystal::Error

Base class for all errors related to specific user code.

Direct known subclasses

Crystal::MethodTraceException Crystal::SyntaxException Crystal::TypeException

Methods

#color=(color)

View source

#color? : Bool

View source

#colorize(obj)

View source

#error_trace=(error_trace)

View source

#error_trace? : Bool

View source

#relative_filename(filename)

View source

#replace_leading_tabs_with_spaces(line)

View source

#to_json(json : JSON::Builder)

View source

#to_s(io) : Nil

View source

abstract #to_s_with_source(io : IO, source)

View source

#to_s_with_source(source)

View source

#true_filename(filename = @filename) : String

View source

#warning=(warning)

View source

#with_color

View source