Exception: BaseChip::ReportingError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BaseChip::ReportingError
- Defined in:
- lib/reporting.rb
Instance Attribute Summary collapse
-
#bundle ⇒ Object
readonly
Returns the value of attribute bundle.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, file = nil, bundle = nil) ⇒ ReportingError
constructor
A new instance of ReportingError.
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(,file=nil,bundle=nil) if .is_a? Problem @message = .signature @file = .file @bundle = .bundle else @message = @file = file @bundle = bundle end end |
Instance Attribute Details
#bundle ⇒ Object (readonly)
Returns the value of attribute bundle.
24 25 26 |
# File 'lib/reporting.rb', line 24 def bundle @bundle end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
23 24 25 |
# File 'lib/reporting.rb', line 23 def file @file end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
22 23 24 |
# File 'lib/reporting.rb', line 22 def @message end |