Class: Halchemy::ErrorHandling
- Inherits:
-
Object
- Object
- Halchemy::ErrorHandling
- Defined in:
- lib/halchemy/error_handling.rb
Overview
A container for the settings which govern how errors are handled.
Instance Attribute Summary collapse
-
#raise_for_network_errors ⇒ Object
Returns the value of attribute raise_for_network_errors.
-
#raise_for_status_codes ⇒ Object
Returns the value of attribute raise_for_status_codes.
Instance Method Summary collapse
-
#initialize ⇒ ErrorHandling
constructor
A new instance of ErrorHandling.
Constructor Details
#initialize ⇒ ErrorHandling
Returns a new instance of ErrorHandling.
8 9 10 11 |
# File 'lib/halchemy/error_handling.rb', line 8 def initialize @raise_for_network_errors = true @raise_for_status_codes = nil end |
Instance Attribute Details
#raise_for_network_errors ⇒ Object
Returns the value of attribute raise_for_network_errors.
6 7 8 |
# File 'lib/halchemy/error_handling.rb', line 6 def raise_for_network_errors @raise_for_network_errors end |
#raise_for_status_codes ⇒ Object
Returns the value of attribute raise_for_status_codes.
6 7 8 |
# File 'lib/halchemy/error_handling.rb', line 6 def raise_for_status_codes @raise_for_status_codes end |