class Therapy::Error

Defined in:

therapy/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String, path : Array(Int32 | String) = [] of String | Int32) #

[View source]

Instance Method Detail

def message : String #

[View source]
def path : Array(String | Int32) #

String | Int32 because the path to the field could be through an array


[View source]
def to_s : String #
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.


[View source]