Exception: T2Server::AccessForbiddenError
- Inherits:
-
T2ServerError
- Object
- RuntimeError
- T2ServerError
- T2Server::AccessForbiddenError
- Defined in:
- lib/t2-server/exceptions.rb
Overview
Access to the entity (run or attribute) is denied. The credentials supplied are not sufficient or the server does not allow the operation.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
The path of the attribute that the user is forbidden to access.
Instance Method Summary collapse
-
#initialize(path) ⇒ AccessForbiddenError
constructor
Create a new AccessForbiddenError with the path to the restricted attribute.
Constructor Details
#initialize(path) ⇒ AccessForbiddenError
Create a new AccessForbiddenError with the path to the restricted attribute.
163 164 165 166 167 168 |
# File 'lib/t2-server/exceptions.rb', line 163 def initialize(path) @path = path super "Access to #{@path} is forbidden. Either you do not have the " + "required credentials or the server does not allow the requested " + "operation" end |
Instance Attribute Details
#path ⇒ Object (readonly)
The path of the attribute that the user is forbidden to access.
159 160 161 |
# File 'lib/t2-server/exceptions.rb', line 159 def path @path end |