Exception: AnnotationSecurity::RuleNotFoundError
- Inherits:
-
RuleError
- Object
- StandardError
- SecurityError
- RuleError
- AnnotationSecurity::RuleNotFoundError
- Defined in:
- lib/annotation_security/exceptions.rb
Overview
AnnotationSecurity::RuleNotFoundError
Will be raised when attempting to acces a right or relation that was not defined.
Class Method Summary collapse
Methods inherited from RuleError
Class Method Details
.for_rule(rname, policy_class) ⇒ Object
120 121 122 123 |
# File 'lib/annotation_security/exceptions.rb', line 120 def self.for_rule(rname,policy_class) new("Unknown #{policy_class.static? ? 'static' : 'dynamic'} " + "rule '#{rname}' for #{policy_class.name}") end |