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.2.tar.gz (4.8 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.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for errorslib-1.2.tar.gz
Algorithm Hash digest
SHA256 bd5ffeec2a77d71f3344d76b671445d3aee8898952b0f16f993151f36e8dac1a
MD5 cd2b0a2084833f1121a7a15b9c78e1fc
BLAKE2b-256 55f1e87a8989823cd92e9b9fd2f28f1280741d0c5fd7f7d5a3e936e40d968d9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: errorslib-1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 18d91d94e395aa479b3023c00be5e9d59a428771b88e8e34d64265ee12da5ff1
MD5 d518f7f1dcf913358d21b72179c7b252
BLAKE2b-256 a16546402b9e7093e282fe23ca20868c9555e99e359c306bd28e200f0b618059

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