Exception: BaseChip::ReportingError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/reporting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, file = nil, bundle = nil) ⇒ ReportingError

Returns a new instance of ReportingError.



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/reporting.rb', line 25

def initialize(message,file=nil,bundle=nil)
  if message.is_a? Problem
    @message = message.signature
    @file    = message.file
    @bundle  = message.bundle
  else
    @message = message
    @file    = file
    @bundle  = bundle
  end
end

Instance Attribute Details

#bundleObject (readonly)

Returns the value of attribute bundle.



24
25
26
# File 'lib/reporting.rb', line 24

def bundle
  @bundle
end

#fileObject (readonly)

Returns the value of attribute file.



23
24
25
# File 'lib/reporting.rb', line 23

def file
  @file
end

#messageObject (readonly)

Returns the value of attribute message.



22
23
24
# File 'lib/reporting.rb', line 22

def message
  @message
end