Exception: FreeAgent::ErrorGenerator
- Inherits:
-
StandardError
- Object
- StandardError
- FreeAgent::ErrorGenerator
- Defined in:
- lib/free_agent/error_generator.rb
Direct Known Subclasses
FreeAgent::Errors::AuthenticationMissingError, FreeAgent::Errors::BadRequestError, FreeAgent::Errors::ConflictError, FreeAgent::Errors::EntityNotFoundError, FreeAgent::Errors::ForbiddenError, FreeAgent::Errors::InternalError, FreeAgent::Errors::NotImplementedError, FreeAgent::Errors::ServiceUnavailableError, FreeAgent::Errors::TooManyRequestsError, FreeAgent::Errors::UnprocessableContent
Instance Attribute Summary collapse
-
#freeagent_error_code ⇒ Object
readonly
Returns the value of attribute freeagent_error_code.
-
#freeagent_error_message ⇒ Object
readonly
Returns the value of attribute freeagent_error_message.
-
#http_status_code ⇒ Object
readonly
Returns the value of attribute http_status_code.
Instance Method Summary collapse
-
#initialize(response_body, http_status_code) ⇒ ErrorGenerator
constructor
A new instance of ErrorGenerator.
Constructor Details
#initialize(response_body, http_status_code) ⇒ ErrorGenerator
Returns a new instance of ErrorGenerator.
7 8 9 10 11 12 |
# File 'lib/free_agent/error_generator.rb', line 7 def initialize(response_body, http_status_code) @response_body = response_body @http_status_code = http_status_code set_freeagent_error_values super() end |
Instance Attribute Details
#freeagent_error_code ⇒ Object (readonly)
Returns the value of attribute freeagent_error_code.
4 5 6 |
# File 'lib/free_agent/error_generator.rb', line 4 def freeagent_error_code @freeagent_error_code end |
#freeagent_error_message ⇒ Object (readonly)
Returns the value of attribute freeagent_error_message.
5 6 7 |
# File 'lib/free_agent/error_generator.rb', line 5 def @freeagent_error_message end |
#http_status_code ⇒ Object (readonly)
Returns the value of attribute http_status_code.
3 4 5 |
# File 'lib/free_agent/error_generator.rb', line 3 def http_status_code @http_status_code end |