-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: refactor: all class docstrings
- Loading branch information
Showing
15 changed files
with
66 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,68 @@ | ||
class RpcClientException(Exception): | ||
""" general exception """ | ||
pass | ||
|
||
|
||
class InvalidServerVersionMagicError(RpcClientException): | ||
""" server handshake failed due to an invalid magic """ | ||
pass | ||
|
||
|
||
class ServerDiedError(RpcClientException): | ||
""" server became disconnected during an operation """ | ||
pass | ||
|
||
|
||
class SymbolAbsentError(RpcClientException): | ||
""" trying to access a symbol which is not exported from any library currently loaded into the server's memory """ | ||
pass | ||
|
||
|
||
class ArgumentError(RpcClientException): | ||
""" at least one of the supplied arguments for a given function was invalid """ | ||
pass | ||
|
||
|
||
class BadReturnValueError(RpcClientException): | ||
""" remote c function returned an error """ | ||
pass | ||
|
||
|
||
class NoSuchPreferenceError(RpcClientException): | ||
""" attempt to read a preference data which doesn't exist """ | ||
pass | ||
|
||
|
||
class CfSerializationError(RpcClientException): | ||
""" failed to decode a cfobject into a python object """ | ||
pass | ||
|
||
|
||
class SpawnError(RpcClientException): | ||
pass | ||
|
||
|
||
class InvalidArgumentError(RpcClientException): | ||
""" failed to spawn a child process """ | ||
pass | ||
|
||
|
||
class FailedToConnectError(RpcClientException): | ||
""" failed to connect to rpcserver """ | ||
pass | ||
|
||
|
||
class UnrecognizedSelectorError(RpcClientException): | ||
""" tried to access a non-existing objc object selector """ | ||
pass | ||
|
||
|
||
class GettingObjectiveCClassError(RpcClientException): | ||
""" failed to create an objc class wrapper for a given object """ | ||
pass | ||
|
||
|
||
class MissingLibraryError(RpcClientException): | ||
""" a required library could not be found """ | ||
pass | ||
|
||
|
||
class PermissionDeniedError(RpcClientException): | ||
""" failed to access a certain something """ | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
|
||
|
||
class Bluetooth: | ||
""" bluetooth utils """ | ||
|
||
def __init__(self, client): | ||
self._client = client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters