module

Lustra::ErrorMessages

This module list most of the runtime errors happening in Lustra. It's an attempt to make Lustra user friendly by enabling advanced resolution of problems when they raise.

Instance methods

build_error_message(message : String, ways_to_resolve : Tuple | Array = Tuple.new)
Source
converter_error(from, to)
Source
format_width(x, w = 80)
Source
illegal_setter_access_to_undefined_column(name)
Source
lack_of_primary_key(model_name)
Source
migration_already_down(number)
Source
migration_already_up(number)
Source
migration_irreversible(name = nil, operation = nil)
Source
migration_not_found(number)
Source
migration_not_unique(numbers)
Source
no_migration_yet(version)
Source
null_column_mapping_error(name, type)
Source
order_by_error_invalid_order(current_order)
Source
polymorphic_nil(through)
Source
polymorphic_unknown_class(class_name)
Source
query_building_error(message)
Source
uid_not_found(class_name)
Source
uninitialized_db_connection(connection)
Source