Active Erroring
Active Erroring is a Python package that provides a simple way to raise custom errors with customizable error names and messages.
Installation
You can install Active Erroring using pip.
pip install active-erroring
Usage
To use Active Erroring in your Python code, follow these steps:
-
Import the
CustomErrorclass from theactive_erroringmodule. -
Create an instance of
CustomErrorand provide the error message. You can also specify a custom error name. -
Raise the custom error.
Example
Here's a complete example of using Active Erroring in a Python script.
Demo
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for Active-Erroring 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Active_Erroring-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for Active_Erroring-1.1.2-py3-none-any.whl |
Release files / Active_Erroring-1.1.2-py3-none-any.whl
| Download URL | Active_Erroring-1.1.2-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae5b4523b66598105ee62e1c624545ce22afd7fee260b4a753c1027f76122e4f
|
|
BLAKE2b-256 checksum How to use checksums |
4d7568bc6b11a3420faea5cf1836983db029270da0811183c9440dcf847c11d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for Active-Erroring 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.