Exception: T2Server::AccessForbiddenError

Inherits:
T2ServerError
  • Object
show all
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

Instance Method Summary collapse

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

#pathObject (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