Exception: T2Server::AttributeNotFoundError

Inherits:
T2ServerError
  • Object
show all
Defined in:
lib/t2-server/exceptions.rb

Overview

Indicates that the attribute that the user is trying to read/change does not exist. The attribute could be a server or run attribute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ AttributeNotFoundError

Create a new AttributeNotFoundError with the path to the erroneous attribute.



127
128
129
130
# File 'lib/t2-server/exceptions.rb', line 127

def initialize(path)
  @path = path
  super "Could not find attribute at #{@path}"
end

Instance Attribute Details

#pathObject (readonly)

The path of the attribute that was not found on the server.



123
124
125
# File 'lib/t2-server/exceptions.rb', line 123

def path
  @path
end