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.4.9
- bizerror.BizError add init by a dict supporting.
- Add bizerror.PermissionError(s).
v0.4.7
- Add BizError.update.
- Add CastFailedError.
v0.4.6
- Add BadResponseContent.
v0.4.5
- Add StringTooShort and StringTooLong.
- Fix bizerror.BizError(another_bizerror) problem.
v0.4.2
- Fix unicode encode/decode problems.
- Support python3 only.
v0.4.1
- Add UserDoesNotExist.
- Add BadUserToken.
v0.4.0
- Get error message by error class name, so that we can provide error message override function.
v0.3.1
- Fix xlsxhelper dependencies problem.
v0.3.0
- Add message parameters support.
- Add exception classes.
- Add class generator and tempalte maker.
v0.2.3
- Add NotSupportedTypeToCast error.
v0.2.0
- Fix get_error_message always use default language problem.
- Add BizError.MESSAGE classproperty.
V0.2.0
- Add auto generate mechanism.
- Add language support.
v0.1.0
- Add BizError base class.
- Add some common errors.
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.9.tar.gz
(10.9 kB
view details)
Built Distribution
bizerror-0.4.9-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file bizerror-0.4.9.tar.gz
.
File metadata
- Download URL: bizerror-0.4.9.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083c7a5f62b5b0961c6b3958b29a499aebb2b044406f8b2c6dcd0803ea4180af |
|
MD5 | 7f5a9485213b9324c2f10f699ad73902 |
|
BLAKE2b-256 | f02560deafc50e984582b03b349aaae9ee266a766acbf6d6fb7bb047ee673816 |
File details
Details for the file bizerror-0.4.9-py3-none-any.whl
.
File metadata
- Download URL: bizerror-0.4.9-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f61209625656e329ccfe34dd8673171370c068ec570930ca8d87550b1fe34f2 |
|
MD5 | a11fdb233b1187a89f0554020958c999 |
|
BLAKE2b-256 | 714be3097337839684db77e38a8c7afb8bd0886170603ce7ceb4ca922ecd46b6 |