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.



139
140
141
142
# File 'lib/t2-server/exceptions.rb', line 139

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.



135
136
137
# File 'lib/t2-server/exceptions.rb', line 135

def path
  @path
end