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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bizerror-0.4.13.tar.gz | 13.0 kB | Without provenance | Details for bizerror-0.4.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bizerror-0.4.13-py3-none-any.whl | Python 3 | none | any | Details for bizerror-0.4.13-py3-none-any.whl |
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
|
Security for bizerror 0.4.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.