Exception: AnnotationSecurity::RuleError
- Inherits:
-
SecurityError
- Object
- StandardError
- SecurityError
- AnnotationSecurity::RuleError
- Defined in:
- lib/annotation_security/exceptions.rb
Overview
AnnotationSecurity::RuleError
Will be raised if a right or relation is defined twice or has an invalid name.
Direct Known Subclasses
Class Method Summary collapse
-
.defined_twice(type, rule) ⇒ Object
:nodoc:.
-
.forbidden_name(type, rule) ⇒ Object
:nodoc:.
Class Method Details
.defined_twice(type, rule) ⇒ Object
:nodoc:
70 71 72 |
# File 'lib/annotation_security/exceptions.rb', line 70 def self.defined_twice(type,rule) # :nodoc: new "The #{type} #{rule} is defined twice" end |
.forbidden_name(type, rule) ⇒ Object
:nodoc:
74 75 76 |
# File 'lib/annotation_security/exceptions.rb', line 74 def self.forbidden_name(type,rule) # :nodoc: new "#{rule} is not allowed as #{type} name" end |