Exception: Tabscanner::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Tabscanner::Error
- Defined in:
- lib/tabscanner/errors/base_error.rb
Overview
Base error class for all Tabscanner-specific errors
This class provides enhanced error handling capabilities including raw response data for debugging purposes when debug mode is enabled.
Direct Known Subclasses
ConfigurationError, ServerError, UnauthorizedError, ValidationError
Instance Attribute Summary collapse
-
#raw_response ⇒ Hash?
readonly
Raw HTTP response data for debugging.
Instance Method Summary collapse
-
#initialize(message = nil, raw_response: nil) ⇒ Error
constructor
Initialize error with message and optional raw response.
Constructor Details
#initialize(message = nil, raw_response: nil) ⇒ Error
Initialize error with message and optional raw response
22 23 24 25 26 27 28 |
# File 'lib/tabscanner/errors/base_error.rb', line 22 def initialize( = nil, raw_response: nil) @raw_response = raw_response # Enhance message with debug info if available and debug mode enabled = () super() end |
Instance Attribute Details
#raw_response ⇒ Hash? (readonly)
Returns Raw HTTP response data for debugging.
17 18 19 |
# File 'lib/tabscanner/errors/base_error.rb', line 17 def raw_response @raw_response end |