Skip to main content

Why would you use this?

Reason this release was yanked:

fix homepage

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.1.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.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: errorslib-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 566ddef154991a546590fe4d3d33b8cdaa4115236fcd0afd09038c1a178f7fad
MD5 3b9785c5ae5518ea33bbd2a04795be18
BLAKE2b-256 ea380b843a913beabff8fe99789f5144a89518dee32735f82d1ced7cd87283fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: errorslib-1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97452d98e3f31a9f4fc032584804079b3f25782f83e4a4f9e7e105c633c7d1ff
MD5 77fa08431d88f3b7e5efdfb6232da271
BLAKE2b-256 4afd75543a362d19c4fca8cb9c82c72b2d850cc161171e3bbcd9e7396c6d9582

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