Exception: Appom::AppomError
- Inherits:
-
StandardError
- Object
- StandardError
- Appom::AppomError
- Defined in:
- lib/appom/exceptions.rb
Overview
Base exception for all Appom-related errors
Direct Known Subclasses
ArgumentError, ConfigurationError, DriverError, ElementError, SectionError, TimeoutError, UnsupportedBlockError, WaitError
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #detailed_message ⇒ Object
-
#initialize(message = nil, context = {}) ⇒ AppomError
constructor
A new instance of AppomError.
Constructor Details
#initialize(message = nil, context = {}) ⇒ AppomError
Returns a new instance of AppomError.
8 9 10 11 |
# File 'lib/appom/exceptions.rb', line 8 def initialize( = nil, context = {}) super() @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/appom/exceptions.rb', line 6 def context @context end |
Instance Method Details
#detailed_message ⇒ Object
13 14 15 16 17 |
# File 'lib/appom/exceptions.rb', line 13 def = [] << "Context: #{context}" unless context.empty? .join("\n") end |