Skip to main content

No project description provided

Project description

Potential errors in python

github page https://github.com/codingpwlorsk/error_vals_in_python

this package allows you to handle errors like in go and rust.

Inorder to do this, you must first install the package using pip install error-values. Then you must import it into your prodjects like so import error_values or better from error_values.error_value import errors.

After that, you can use the Potential_Error class for safe results, you can do so like this Potential_Error("random string"), meanwhile for dangerous result, you can do this Potential_Error(None,Random_Error).

Inorder to get the result you must use the dwrap method like so exsample.dewrap(), only AFTER you get the stat from the stat method, and handle the errors like so

exsampl = Potential_Error("random string")
if exsample.stat() == Result.FAIL:
    # handleing error
dewrapped_value = exsample.dewrap()
# do what you want

along with this, you're able accses the error directly by using the .error class variable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

error_values-0.1.8.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

error_values-0.1.8-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file error_values-0.1.8.tar.gz.

File metadata

  • Download URL: error_values-0.1.8.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for error_values-0.1.8.tar.gz
Algorithm Hash digest
SHA256 bc39532ca5c8e2c36b819119c15aa0af949be10e209fa06e0611912ac5877334
MD5 a30975b1724c18d1f8a590757ba9ab99
BLAKE2b-256 d69cafb0849a27666e86431e36ce16f1d4605ec32b0cead0516875436c43040e

See more details on using hashes here.

File details

Details for the file error_values-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: error_values-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for error_values-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 79692a4e9733865257a4c8785a58bd59a6156a5c6c24c5aebee9e4d826d63216
MD5 6ef121966be3785d9656fccf19d84dcf
BLAKE2b-256 11fa4f48f70a4eab13f03901cb7d31e082e6de08807e9d0e8aacdbd9e8271e7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page