Skip to main content

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
    • AuthenticationRequired
  • TypeError
    • ParseJsonError
    • InformalResultPackage
    • InformalRequestError
    • TooLargeRequestError
  • 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
  • NetworkError
    • ClientLostError
    • SendRequestToServerError
    • RecvServerResponseError
    • ServerGoneAwayError
  • ServiceError
    • EventNotRegistered

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.

v0.4.12

  • Doc update.

v0.4.13

  • Doc update.

Release files for bizerror 0.4.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bizerror 0.4.13
File Size Uploaded
bizerror-0.4.13.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bizerror 0.4.13
File Interpreter ABI Platform
bizerror-0.4.13-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / bizerror-0.4.13.tar.gz

Download URL bizerror-0.4.13.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a6e0b4affbdbe4b7a7a00367e5d7d6ce41844c1bed5459b45159db3e196a3559
BLAKE2b-256 checksum
How to use checksums
90e5638bcac9d8ad1e6351ca34604bb58e70971d94a3084b84db35ac814fd957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / bizerror-0.4.13-py3-none-any.whl

Download URL bizerror-0.4.13-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
273d1200f2dcc5e70290024069a0bf0bf4298764570d697af1245a1df7175daf
BLAKE2b-256 checksum
How to use checksums
556754fa69780e5691f57cd53544979145f37418435158eb7715cc79098b2359
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release history Release notifications | RSS feed

This release

0.4.13 This release

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page