jetblack_tweeter.errors

class TweeterHttpError(HTTPError)

Summary

Initialise the error.

jetblack_tweeter.TweeterHttpError(
url: str,
status_code: int,
headers: Mapping[str, str],
message: str
) -> None

Parameters

url: str

The url that generated the error.

status_code: int

The status code that was returned.

headers: Mapping[str, str]

The headers that were returned.

message: str

The message supplied.

property TweeterHttpError.headers


headers -> Any
headers: Any = ...

property TweeterHttpError.reason


reason -> Any

property TweeterHttpError.status


status -> Any

method TweeterHttpError.close

Summary

Close the temporary file, possibly deleting it.

TweeterHttpError.close() -> Any

Returns

Any:

method TweeterHttpError.getcode


TweeterHttpError.getcode() -> Any

Returns

Any:

method TweeterHttpError.geturl


TweeterHttpError.geturl() -> Any

Returns

Any:

method TweeterHttpError.info


TweeterHttpError.info() -> Any

Returns

Any:

class StreamError(TweeterHttpError)

Summary

Initialise the stream error.

jetblack_tweeter.StreamError(
url: str,
status_code: int,
headers: Mapping[str, str]
) -> None

Parameters

url: str

The url that generated the error.

status_code: int

THe status code that was returned.

headers: Mapping[str, str]

THe headers that were returned.

property StreamError.headers


headers -> Any
headers: Any = ...

property StreamError.reason


reason -> Any

property StreamError.status


status -> Any

method StreamError.close

Summary

Close the temporary file, possibly deleting it.

StreamError.close() -> Any

Returns

Any:

method StreamError.getcode


StreamError.getcode() -> Any

Returns

Any:

method StreamError.geturl


StreamError.geturl() -> Any

Returns

Any:

method StreamError.info


StreamError.info() -> Any

Returns

Any:

class ApiError(TweeterHttpError)

Summary

Initialise the api error.

jetblack_tweeter.ApiError(
url: str,
status_code: int,
headers: Mapping[str, str]
) -> None

Parameters

url: str

The url that generated the error

status_code: int

The status code that was returned.

headers: Mapping[str, str]

The headers that were returned.

property ApiError.headers


headers -> Any
headers: Any = ...

property ApiError.reason


reason -> Any

property ApiError.status


status -> Any

method ApiError.close

Summary

Close the temporary file, possibly deleting it.

ApiError.close() -> Any

Returns

Any:

method ApiError.getcode


ApiError.getcode() -> Any

Returns

Any:

method ApiError.geturl


ApiError.geturl() -> Any

Returns

Any:

method ApiError.info


ApiError.info() -> Any

Returns

Any: