Exception: Refine::ProjectNotFound

Inherits:
Exception
  • Object
show all
Defined in:
lib/refine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, project_id:, server:) ⇒ ProjectNotFound

Returns a new instance of ProjectNotFound.



10
11
12
13
14
# File 'lib/refine.rb', line 10

def initialize(message, project_id:, server:)
  super(message)
  @project_id = project_id
  @server = server
end

Instance Attribute Details

#project_idObject (readonly)

Returns the value of attribute project_id.



8
9
10
# File 'lib/refine.rb', line 8

def project_id
  @project_id
end

#serverObject (readonly)

Returns the value of attribute server.



8
9
10
# File 'lib/refine.rb', line 8

def server
  @server
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/refine.rb', line 16

def to_s
  super + " (#{@server})"
end