Class: Trax::Core::Errors::Arguments
- Defined in:
- lib/trax/core/errors.rb
Overview
Example:
class AbstractInstanceMethodNotDefined < ::Trax::Core::Errors::Base
argument :method_name, :required => true
argument :klass, :required => true
{
"Abstract instance method, #{method_name} not defined for #{klass}"
}
end
raise ::AbstractInstanceMethodNotDefined.new(:method_name => "my_method", :klass => self.class.name)