module
Lustra::ErrorMessages
Overview
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.
Extended Modules
Direct including types
- Lustra::Migration
- Lustra::Migration::Manager
- Lustra::Migration::Operation
- Lustra::Model
- Lustra::Model::Column(T, C)
Defined in:
lustra/error_messages.crInstance Method Summary
- #build_error_message(message : String, ways_to_resolve : Tuple | Array = Tuple.new)
- #converter_error(from, to)
- #format_width(x, w = 80)
- #illegal_setter_access_to_undefined_column(name)
- #lack_of_primary_key(model_name)
- #migration_already_down(number)
- #migration_already_up(number)
- #migration_irreversible(name = nil, operation = nil)
- #migration_not_found(number)
- #migration_not_unique(numbers)
- #no_migration_yet(version)
- #null_column_mapping_error(name, type)
- #order_by_error_invalid_order(current_order)
- #polymorphic_nil(through)
- #polymorphic_unknown_class(class_name)
- #query_building_error(message)
- #uid_not_found(class_name)
- #uninitialized_db_connection(connection)
Instance Method Detail
def build_error_message(message : String, ways_to_resolve : Tuple | Array = Tuple.new)
#