nubium/this-should-never-happen-exception

Extend this exception and throw it anytime something unexpected happens.

v1.0 2018-03-27 10:16 UTC

This package is not auto-updated.

Last update: 2024-09-26 17:39:40 UTC


README

Build Status Downloads this Month Latest Stable Version License

There is something which should never happen in every application :)

Usage

switch ($oneOrTwoNothingElse) {
    case 1:
        echo 1;
        break;
    case 2:
        echo 2;
        break;
    default:
        throw new ThisShouldNeverHappenException('Unexpected input.');
}