Skip to main content

Wechat Exception Module for Python.

Project description

Wechat Exception Module for Python.

Installation

pip install pywe-exception

Usage

In [1]: from pywe_exception import WeChatException, WeChatPayException

In [2]: raise WeChatException({"errcode": 40125, "errmsg": "invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]"})
---------------------------------------------------------------------------
WeChatException                           Traceback (most recent call last)
<ipython-input-2-793779f73857> in <module>()
----> 1 raise WeChatException({"errcode": 40125, "errmsg": "invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]"})

WeChatException: {'errcode': 40125, 'errmsg': 'invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]'}

Method

class WeChatException(Exception):
    """ WeChatException """


class WeChatPayException(Exception):
""" WeChatPayException """

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

pywe-exception-1.0.2.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

pywe_exception-1.0.2-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pywe-exception-1.0.2.tar.gz.

File metadata

File hashes

Hashes for pywe-exception-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cfe1fe4e19a6a15e53aafd11175254505507c84360b9eeb0bafcb2bf87ce2274
MD5 73fb6e82884d09bd8c475b20f8a0b0c4
BLAKE2b-256 18fdd64ccf506fbcd292a8d6800ca76b81bd3fcf94056223ef7ee46cf6b933ac

See more details on using hashes here.

File details

Details for the file pywe_exception-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pywe_exception-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 263cae45e07c18bb8fe5fc06e3f852446c9116662ff1dd88d78555fe36313b5f
MD5 ef14695ce017247d01abbd6ed3439f27
BLAKE2b-256 10e5e39ebeb2122f47c0af0e45a5192945dae93046f7e582ef6e0feee9f060e5

See more details on using hashes here.

Supported by

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