Exception: ActiveFacts::API::RoleNotDefinedException

Inherits:
RuntimeException show all
Defined in:
lib/activefacts/api/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, role_name) ⇒ RoleNotDefinedException

Returns a new instance of RoleNotDefinedException.



67
68
69
# File 'lib/activefacts/api/exceptions.rb', line 67

def initialize klass, role_name
  super "Role #{klass.basename}.#{role_name} is not defined in #{klass.all_role.keys.map(&:to_s).sort.inspect}"
end