This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add docstring and type hint for all funcs
- Loading branch information
1 parent
7d591d3
commit 07a39ff
Showing
7 changed files
with
260 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
class PackageError(Exception): | ||
"""Invalid credentials/cookies.""" | ||
""" | ||
Exception raised when encountering invalid credentials or cookies. | ||
This exception indicates that the provided credentials or cookies are invalid or insufficient for the operation. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class GeminiAPIError(Exception): | ||
"""Unhandled server error.""" | ||
""" | ||
Exception raised for unhandled errors from the Gemini server. | ||
This exception indicates that an unexpected error occurred on the Gemini server side, which was not properly handled by the client. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class TimeoutError(GeminiAPIError): | ||
"""Request timeout.""" | ||
""" | ||
Exception raised when a request times out. | ||
This exception is a subclass of GeminiAPIError and is raised when a request to the Gemini server exceeds the specified timeout period without receiving a response. | ||
""" | ||
|
||
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
Oops, something went wrong.