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
- 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.
Project details
Release history Release notifications | RSS feed
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.11.tar.gz
(12.7 kB
view details)
Built Distribution
bizerror-0.4.11-py3-none-any.whl
(13.3 kB
view details)
File details
Details for the file bizerror-0.4.11.tar.gz
.
File metadata
- Download URL: bizerror-0.4.11.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f87404cfce368d622ce955eed7a4dd7450e814f52185b056fa8f44963986ff |
|
MD5 | 49f4879421cf9269bbfe50f41b0fc42b |
|
BLAKE2b-256 | db7838e23ebe613770dab5d017c5a97d3ea49327dd71d222b4fde5755a402dcf |
File details
Details for the file bizerror-0.4.11-py3-none-any.whl
.
File metadata
- Download URL: bizerror-0.4.11-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57e897c530911e0c3e9f263a94810d05d29d0c76a696a273e99a80eb5c7d300f |
|
MD5 | eae4b77acf8b0c5d3fb199aacaf0f5b3 |
|
BLAKE2b-256 | fac15481d49d225a695b60b82b7116d8ca921925a8d422d13c67786b2a4c59e9 |