Exception: PandaPal::OrganizationConcerns::OrganizationBuilder::InteractiveSessionError

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/panda_pal/organization_concerns/organization_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, source_code) ⇒ InteractiveSessionError

Returns a new instance of InteractiveSessionError.



10
11
12
13
# File 'app/models/panda_pal/organization_concerns/organization_builder.rb', line 10

def initialize(message, source_code)
  super(message)
  @source_code = source_code
end

Instance Attribute Details

#source_codeObject (readonly)

Returns the value of attribute source_code.



8
9
10
# File 'app/models/panda_pal/organization_concerns/organization_builder.rb', line 8

def source_code
  @source_code
end

Instance Method Details



15
16
17
18
19
20
21
22
23
# File 'app/models/panda_pal/organization_concerns/organization_builder.rb', line 15

def print
  puts cause&.message, cause&.backtrace
  puts ""
  puts message
  puts "Code is below for tweaking and/or using it in a Rails console"
  puts ""
  puts source_code
  puts ""
end