catchlib 1.0.8__tar.gz → 1.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {catchlib-1.0.8 → catchlib-1.0.9}/MANIFEST.in +1 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/PKG-INFO +1 -1
- catchlib-1.0.9/docs/v1.0.rst +69 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/pyproject.toml +1 -1
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib.egg-info/PKG-INFO +1 -1
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib.egg-info/SOURCES.txt +1 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/LICENSE.txt +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/README.rst +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/setup.cfg +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib/__init__.py +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib/core/Catcher.py +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib/core/__init__.py +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib/tests/__init__.py +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib/tests/test_0.py +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib.egg-info/dependency_links.txt +0 -0
- {catchlib-1.0.8 → catchlib-1.0.9}/src/catchlib.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Introduction
|
|
2
|
+
------------
|
|
3
|
+
|
|
4
|
+
This project allows to catch exceptions easily.
|
|
5
|
+
|
|
6
|
+
Installation
|
|
7
|
+
------------
|
|
8
|
+
|
|
9
|
+
To install catchlib, you can use pip. Open your terminal and run:
|
|
10
|
+
|
|
11
|
+
.. code-block:: shell
|
|
12
|
+
|
|
13
|
+
pip install catchlib
|
|
14
|
+
|
|
15
|
+
Features
|
|
16
|
+
--------
|
|
17
|
+
|
|
18
|
+
``class catchlib.Catcher()``
|
|
19
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
20
|
+
|
|
21
|
+
This class allows to catch exceptions.
|
|
22
|
+
|
|
23
|
+
``catch(*args: type[BaseException]) -> contextlib.ContextDecorator``
|
|
24
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
25
|
+
|
|
26
|
+
This contextmanager catches exceptions of the given types.
|
|
27
|
+
|
|
28
|
+
``caught: Optional[BaseException] = None``
|
|
29
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
30
|
+
|
|
31
|
+
This property stores the caught exception.
|
|
32
|
+
|
|
33
|
+
``release() -> None`` ``release(cause: Optional[BaseException]) -> None``
|
|
34
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
35
|
+
|
|
36
|
+
This method raises and deletes the ``caught`` exception.
|
|
37
|
+
|
|
38
|
+
``catchlib.test() -> unittest.TextTestResult``
|
|
39
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
40
|
+
|
|
41
|
+
This project can be tested through its test function.
|
|
42
|
+
|
|
43
|
+
.. code-block:: python
|
|
44
|
+
|
|
45
|
+
import catchlib
|
|
46
|
+
catchlib.test()
|
|
47
|
+
|
|
48
|
+
License
|
|
49
|
+
-------
|
|
50
|
+
|
|
51
|
+
This project is licensed under the MIT License.
|
|
52
|
+
|
|
53
|
+
Links
|
|
54
|
+
-----
|
|
55
|
+
|
|
56
|
+
- Download: https://pypi.org/project/catchlib/#files
|
|
57
|
+
- Index: https://pypi.org/project/catchlib/
|
|
58
|
+
- Source: https://github.com/johannes-programming/catchlib/
|
|
59
|
+
- Website: https://catchlib.johannes-programming.online/
|
|
60
|
+
|
|
61
|
+
Impressum
|
|
62
|
+
---------
|
|
63
|
+
|
|
64
|
+
**Johannes Programming**
|
|
65
|
+
|
|
66
|
+
- Name: Johannes
|
|
67
|
+
- Email: johannes.programming@gmail.com
|
|
68
|
+
- Homepage: https://www.johannes-programming.online/
|
|
69
|
+
- Gravatar: https://www.johannes-programming.fyi/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|