Exception: EvolutionApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- EvolutionApi::Error
- Defined in:
- lib/evolution_api/errors.rb
Overview
Classe base para todos os erros da Evolution API
Direct Known Subclasses
AuthenticationError, AuthorizationError, ConnectionError, InstanceNotConnectedError, InvalidNumberError, NotFoundError, QRCodeExpiredError, RateLimitError, ServerError, TimeoutError, ValidationError
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, status_code = nil, error_code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, response = nil, status_code = nil, error_code = nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 |
# File 'lib/evolution_api/errors.rb', line 8 def initialize( = nil, response = nil, status_code = nil, error_code = nil) super() @response = response @status_code = status_code @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
6 7 8 |
# File 'lib/evolution_api/errors.rb', line 6 def error_code @error_code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/evolution_api/errors.rb', line 6 def response @response end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
6 7 8 |
# File 'lib/evolution_api/errors.rb', line 6 def status_code @status_code end |