Skip to main content

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
    • 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.

Project details


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.13.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bizerror-0.4.13-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file bizerror-0.4.13.tar.gz.

File metadata

  • Download URL: bizerror-0.4.13.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for bizerror-0.4.13.tar.gz
Algorithm Hash digest
SHA256 a6e0b4affbdbe4b7a7a00367e5d7d6ce41844c1bed5459b45159db3e196a3559
MD5 85cbb9c799b7fa32be12fc050dac5cfe
BLAKE2b-256 90e5638bcac9d8ad1e6351ca34604bb58e70971d94a3084b84db35ac814fd957

See more details on using hashes here.

File details

Details for the file bizerror-0.4.13-py3-none-any.whl.

File metadata

  • Download URL: bizerror-0.4.13-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for bizerror-0.4.13-py3-none-any.whl
Algorithm Hash digest
SHA256 273d1200f2dcc5e70290024069a0bf0bf4298764570d697af1245a1df7175daf
MD5 d4120b7085003097c8d61a455679f46b
BLAKE2b-256 556754fa69780e5691f57cd53544979145f37418435158eb7715cc79098b2359

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page