Skip to main content

Collections of common business errors.

Project description

bizerror

Collections of common business errors.

Install

pip install bizerror

Installed command utils

  • bizerror-generator

Shipped exception classes

  • OK
  • SysError
    • UndefinedError
    • DatabaseError
    • CacheError
    • MessageQueueError
    • AnotherServiceError
  • HttpError
    • RequestExpired
    • NotSupportedHttpMethod
    • ConfigError
    • MissingConfigItem
  • DataError
    • TargetNotFound
  • AuthError
    • AccountLockedError
    • AccountTemporaryLockedError
    • UserPasswordError
    • AppAuthFailed
    • TsExpiredError
    • AccountDisabledError
    • AccountStatusError
    • AccountRemovedError
    • LoginRequired
    • AccessDenied
    • UserDoesNotExist
    • BadUserToken
  • TypeError
    • CastToIntegerFailed
    • CastToFloatFailed
    • CastToNumbericFailed
    • CastToBooleanFailed
    • CastToStringFailed
    • ParseJsonError
    • NotSupportedTypeToCast
  • ParamError
    • MissingParameter
    • BadParameter
    • BadParameterType
  • FormError
    • CaptchaOnlyAllowedOnce
    • CaptchaValidateFailed
    • RepeatedlySubmitForm
  • LogicError

Bug report

Please report any issues at https://github.com/zencore-cn/zencore-issues.

Release Notes

v0.4.1 2020-10-15

  • Add UserDoesNotExist.
  • Add BadUserToken.

v0.4.0 2020-07-26

  • Get error message by error class name, so that we can provide error message override function.

v0.3.1 2020-07-19

  • Fix xlsxhelper dependencies problem.

v0.3.0 2020-07-19

  • Add message parameters support.
  • Add exception classes.
  • Add class generator and tempalte maker.

v0.2.3 2019-12-08

  • Add NotSupportedTypeToCast error.

v0.2.0 2019-11-07

  • Fix get_error_message always use default language problem.
  • Add BizError.MESSAGE classproperty.

V0.2.0 2019-11-07

  • Add auto generate mechanism.
  • Add language support.

v0.1.0

  • Add BizError base class.
  • Add some common errors.

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

bizerror-0.4.1.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file bizerror-0.4.1.tar.gz.

File metadata

  • Download URL: bizerror-0.4.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.8

File hashes

Hashes for bizerror-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2e8fdbfbd8519f8ef50fdd319a90f0c2fcd7547a05cd14b6ea820ab3e1d39bae
MD5 4393b5e71c169170cc2caad923747a3f
BLAKE2b-256 b3da1bbae955611cab6c919dd194f557f990a446c5f54387306f5a320cfca53d

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