Exception: Authorization::PermissionDenied
- Inherits:
-
Exception
- Object
- Exception
- Authorization::PermissionDenied
- Defined in:
- lib/base_auth.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #clean_message ⇒ Object
-
#initialize(message = nil) ⇒ PermissionDenied
constructor
A new instance of PermissionDenied.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ PermissionDenied
Returns a new instance of PermissionDenied.
14 15 16 |
# File 'lib/base_auth.rb', line 14 def initialize( = nil ) @message = || DEFAULT_PERMISSION_DENIED_MESSAGE end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
13 14 15 |
# File 'lib/base_auth.rb', line 13 def @message end |
Instance Method Details
#clean_message ⇒ Object
17 18 19 |
# File 'lib/base_auth.rb', line 17 def @message end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/base_auth.rb', line 20 def to_s @message end |