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
    • BadResponseContent
  • 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
    • StringTooShort
    • StringTooLong
  • FormError
    • CaptchaOnlyAllowedOnce
    • CaptchaValidateFailed
    • RepeatedlySubmitForm
  • LogicError

Release Notes

v0.4.6 2020-02-21

  • Add BadResponseContent.

v0.4.5 2021-02-19

  • Add StringTooShort and StringTooLong.
  • Fix bizerror.BizError(another_bizerror) problem.

v0.4.2 2020-11-10

  • Fix unicode encode/decode problems.
  • Support python3 only.

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.6.tar.gz (8.0 kB view hashes)

Uploaded Source

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