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.



151
152
153
154
155
156
# File 'lib/t2-server/exceptions.rb', line 151

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.



147
148
149
# File 'lib/t2-server/exceptions.rb', line 147

def path
  @path
end