All Projects → sgolemon → Table Flip

sgolemon / Table Flip

Not the exceptions we need, but the ones we deserve.

Projects that are alternatives of or similar to Table Flip

exceptions-java
Curso Tratamento de Exceções em Java
Stars: ✭ 489 (+49.54%)
Mutual labels:  exceptions
crash
Proper error handling, exceptions and try/catch for ZSH
Stars: ✭ 51 (-84.4%)
Mutual labels:  exceptions
KJExceptionDemo
Automatic crash protection.自动防护异常崩溃 🌇
Stars: ✭ 27 (-91.74%)
Mutual labels:  exceptions
vcrtl
C++ Exceptions in Windows Drivers
Stars: ✭ 141 (-56.88%)
Mutual labels:  exceptions
mwe-cpp-exception
Minimum working example of proper C++11 exception handling
Stars: ✭ 20 (-93.88%)
Mutual labels:  exceptions
ts-httpexceptions
🚦 See https://tsed.io/docs/exceptions.html
Stars: ✭ 24 (-92.66%)
Mutual labels:  exceptions
stack-trace-art
Turning programming exceptions into art
Stars: ✭ 39 (-88.07%)
Mutual labels:  exceptions
Rollbar Php
Error tracking and logging from PHP to Rollbar
Stars: ✭ 297 (-9.17%)
Mutual labels:  exceptions
http-exceptions
Return exceptions over HTTP e.g. as ASP.NET Core Problem Details, and HTTP-specific exception classes that enable ASP.NET to generate exception information
Stars: ✭ 42 (-87.16%)
Mutual labels:  exceptions
05 Python Files
Python too supports file handling and allows users to handle files i.e., to read and write files, along with many other file handling options, to operate on files. The concept of file handling has stretched over various other languages, but the implementation is either complicated or lengthy, but like other concepts of Python, this concept here …
Stars: ✭ 163 (-50.15%)
Mutual labels:  exceptions
java8-streams-and-exceptions
Experiments with dealing with exceptions while using the Stream API
Stars: ✭ 36 (-88.99%)
Mutual labels:  exceptions
custom-exception-middleware
Middleware to catch custom or accidental exceptions
Stars: ✭ 30 (-90.83%)
Mutual labels:  exceptions
The-Java-Workshop
A New, Interactive Approach to Learning Java
Stars: ✭ 65 (-80.12%)
Mutual labels:  exceptions
ExceptionCatcher
Catch Objective-C exceptions in Swift
Stars: ✭ 97 (-70.34%)
Mutual labels:  exceptions
periskop
Exception Monitoring Service
Stars: ✭ 128 (-60.86%)
Mutual labels:  exceptions
easybuggy4django
EasyBuggy clone built on Django
Stars: ✭ 44 (-86.54%)
Mutual labels:  exceptions
vos whatsapp
vangav open source - whatsapp; generated using vangav backend:
Stars: ✭ 14 (-95.72%)
Mutual labels:  exceptions
Tslog
📝 tslog - Expressive TypeScript Logger for Node.js.
Stars: ✭ 321 (-1.83%)
Mutual labels:  exceptions
Exceptional
Helpers for Elixir exceptions
Stars: ✭ 255 (-22.02%)
Mutual labels:  exceptions
py-buzz
"That's not flying, it's falling with style": Python Exceptions with extras
Stars: ✭ 16 (-95.11%)
Mutual labels:  exceptions

Inspired by Adam Harvey: https://twitter.com/LGnome/status/735573024825430016

if ($situation === SHIT::HAPPENED) {(╯°□°)╯︵┻━┻(); }

Usages:

  • throw new (╯°□°)╯︵┻━┻; // TableFlip
  • throw new (ノ゜Д゜)ノ︵┻━┻; // PudgyTableFlip
  • throw new (ノಥ益ಥ)ノ︵┻━┻; // AgroTableFlip
  • (╯°□°)╯︵┻━┻(); // Function shorthand
  • assert((╯°□°)╯︵┻━┻() ); // Use in an assert to only flip in dev

All three table-flip classes extend \Exception and implement the ┻━┻ interface, so the following works:

try {
  $ret = doSomething();
  if ($ret === null) {
    throw new (╯°□°)╯︵┻━┻;
  } elseif ($ret === false) {
    throw new (ノಥ益ಥ)ノ︵┻━┻;
  } elseif (!is_string($ret)) {
    throw new (ノ゜Д゜)ノ︵┻━┻;
  }
} catch (┻━┻ $e) {
  ┬─┬ノ(・_・ノ);
}

Note that the parentheses used in the class/function names here are U+FF08 FULLWIDTH LEFT PARENTHESIS and U+FF09 FULLWIDTH RIGHT PARENTHESIS since normal parens (U+0028/U+0029) are not allowed in PHP labels.

Similarly, the customary space is omitted entirely to make this a valid PHP label.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].