Exception: XTwitterScraper::Errors::APIError
- Inherits:
-
Error
- Object
- StandardError
- Error
- XTwitterScraper::Errors::APIError
show all
- Defined in:
- lib/x_twitter_scraper/errors.rb,
sig/x_twitter_scraper/errors.rbs
Instance Attribute Summary collapse
Attributes inherited from Error
#cause
Instance Method Summary
collapse
Constructor Details
#initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil) ⇒ APIError
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of APIError.
62
63
64
65
66
67
68
69
70
|
# File 'lib/x_twitter_scraper/errors.rb', line 62
def initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil)
@url = url
@status = status
@headers =
@body = body
@request = request
@response = response
super(message)
end
|
Instance Attribute Details
#body ⇒ Object?
51
52
53
|
# File 'lib/x_twitter_scraper/errors.rb', line 51
def body
@body
end
|
48
49
50
|
# File 'lib/x_twitter_scraper/errors.rb', line 48
def
@headers
end
|
#status ⇒ Integer?
45
46
47
|
# File 'lib/x_twitter_scraper/errors.rb', line 45
def status
@status
end
|
#url ⇒ URI::Generic
42
43
44
|
# File 'lib/x_twitter_scraper/errors.rb', line 42
def url
@url
end
|