Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bizerror

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bizerror

Collections of common business errors.

  • 0.4.11
  • PyPI
  • Socket score

Maintainers
1

bizerror

Collections of common business errors.

Install

pip install bizerror

Installed command utils

  • bizerror-generator

Shipped exception classes

  • OK
  • BizError
  • SysError
    • UndefinedError
    • DatabaseError
    • CacheError
    • MessageQueueError
    • AnotherServiceError
  • HttpError
    • RequestExpired
    • NotSupportedHttpMethod
    • BadResponseContent
    • NoMatchingRouteFound
    • ReqeustForbidden
    • NoUpstreamServerAvailabe
  • ConfigError
    • MissingConfigItem
  • DataError
    • TargetNotFound
  • AuthError
    • AccountLockedError
    • AccountTemporaryLockedError
    • UserPasswordError
    • AppAuthFailed
    • TsExpiredError
    • AccountDisabledError
    • AccountStatusError
    • AccountRemovedError
    • LoginRequired
    • AccessDenied
    • UserDoesNotExist
    • BadUserToken
    • ReqidDuplicateError
  • TypeError
    • ParseJsonError
  • ParamError
    • MissingParameter
    • BadParameter
    • BadParameterType
    • StringTooShort
    • StringTooLong
    • MissingField
    • WrongFieldType
    • WrongParameterType
    • ValueExceedsMaxLimit
    • ValueLessThanMinLimit
  • FormError
    • CaptchaOnlyAllowedOnce
    • CaptchaValidateFailed
    • RepeatedlySubmitForm
    • CaptchaRequired
  • LogicError
  • CastFailedError
    • CastToIntegerFailed
    • CastToFloatFailed
    • CastToNumbericFailed
    • CastToBooleanFailed
    • CastToStringFailed
    • NotSupportedTypeToCast
  • PermissionError
    • NoPermissionError
    • NoReadPermissionError
    • NoWritePermissionError
    • NoDeletePermissionError
    • NoAccessPermissionError
    • NoPermissionToCleanCacheError

Release Notes

v0.1.0

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

V0.2.0

  • Add auto generate mechanism.
  • Add language support.

v0.2.1

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

v0.2.3

  • Add NotSupportedTypeToCast error.

v0.3.0

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

v0.3.1

  • Fix xlsxhelper dependencies problem.

v0.4.0

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

v0.4.1

  • Add UserDoesNotExist.
  • Add BadUserToken.

v0.4.2

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

v0.4.5

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

v0.4.6

  • Add BadResponseContent.

v0.4.7

  • Add BizError.update.
  • Add CastFailedError.

v0.4.9

  • bizerror.BizError add init by a dict supporting.
  • Add bizerror.PermissionError(s).

v0.4.10

  • Fix unicode problems for old python.
  • Unittest all passed.

v0.4.11

  • Doc update.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc