Skip to main content

Why would you use this?

Project description

Absurd Errors Module

What is this?

This module defines a collection of absurdly specific and completely unnecessary errors! Perfect for blaming the user, the author, the code, your machine, or even the laws of logic itself.

Use at your own risk. Please. For the love of God.

Why does this exist?

Because sometimes, standard exceptions like ValueError or RuntimeError just don’t cut it. Sometimes, you need to express just how screwed up things are with more precision.

Installation

No need to install—just copy-paste it into your project and enjoy the chaos.

Usage

Raise these errors when you need to make a point, confuse a junior developer, or just vent your frustration in a productive way:

from absurd_errors import *

# Blame the user
raise UserIsAnIdiotError("PEBKAC confirmed.")

# Blame the developer
raise ForgotToImplementError("You had one job.")

# Blame the code
raise CodeIsFuckedUpError("Congratulations, you broke it.")

# Blame reality
raise ParadoxError("This should not be happening. Yet, here we are.")

Error Categories

  • User Errors – Because sometimes the problem is between the keyboard and the chair.
  • Developer Errors – When the author is the real problem.
  • Code Errors – If your spaghetti code finally collapses.
  • Hardware Errors – The computer swears it’s not its fault.
  • Logic Errors – When logic decides to take a vacation.
  • Miscellaneous WTF Errors – For when you truly have no idea what’s happening.

Notable Errors

Error Name When to Use
UserIsAnIdiotError When the user clearly did something dumb.
FeatureNotABugError When it’s a "feature" (totally not a bug).
OopsIDidItAgainError When you make the same mistake… again.
WTFNoOS When the OS is mysteriously gone.
WTFNoBIOS 🎶 How did this happen 🎶
ThisErrorShouldNeverHappenError When an "impossible" bug occurs.
ParadoxError When reality collapses.

License

MIT License. Use at your own risk, and don't sue me if you actually put this into production and get fired.

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

errorslib-1.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

errorslib-1.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file errorslib-1.3.tar.gz.

File metadata

  • Download URL: errorslib-1.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for errorslib-1.3.tar.gz
Algorithm Hash digest
SHA256 21698eeb66e3f647817aeb81090a12fe0d7fc623771025e662bfac788f9b4d0f
MD5 da098ef6f3e8f03a0b5db00dcd965514
BLAKE2b-256 833d5f2eeaab196feba24f1bd1d5b66bc238c132cd1e4cd51714f9de2360116a

See more details on using hashes here.

File details

Details for the file errorslib-1.3-py3-none-any.whl.

File metadata

  • Download URL: errorslib-1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for errorslib-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aff5605b5ac4c5aeec101480a453aac783ad4b64f7d886393eb156035f3326a5
MD5 a32a3c2e351ea09d0780b5dc0c850fa5
BLAKE2b-256 ec43ba7cfc08d24d1bfb47c4459d13812020773a46f3886c592149563e0c908d

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