Exceptions and Errors in PHP 7

An Exceptional Change in PHP 7.0” blog post describes nicely what are the changes to exceptions and error handling in the upcoming PHP 7.  Among simple descriptions, there is this reference chart:

\Throwable
├── \Exception (implements \Throwable)
│   ├── \LogicException (extends \Exception)
│   │   ├── \BadFunctionCallException (extends \LogicException)
│   │   │   └── \BadMethodCallException (extends \BadFunctionCallException)
│   │   ├── \DomainException (extends \LogicException)
│   │   ├── \InvalidArgumentException (extends \LogicException)
│   │   ├── \LengthException (extends \LogicException)
│   │   └── \OutOfRangeException (extends \LogicException)
│   └── \RuntimeException (extends \Exception)
│       ├── \OutOfBoundsException (extends \RuntimeException)
│       ├── \OverflowException (extends \RuntimeException)
│       ├── \RangeException (extends \RuntimeException)
│       ├── \UnderflowException (extends \RuntimeException)
│       └── \UnexpectedValueException (extends \RuntimeException)
└── \Error (implements \Throwable)
    ├── \AssertionError (extends \Error)
    ├── \ParseError (extends \Error)
    └── \TypeError (extends \Error)

Very handy!

TePee no more …

This weekend I got my first bar ban.  I was asked to leave TePee Strictly Rock bar and to never ever come back.  Which I did and which I won’t.

(This post is here mostly for those people who were there on Saturday and who keep asking me what happened.)

What happened was an escalation of misunderstanding, mostly of what is rock music, what is a rock bar, what is a live gig, and what are the behavioral boundaries.  I don’t claim to be an expert on the subject, but I do have an opinion, with which a few people agree.  Too bad, the band on stage and the owner of the establishment didn’t.

It turns out I was too loud in the crowd.  It turns out I was making the band uncomfortable by screaming requests for something heavier (AC/DC, Rammstein, Metallica, etc) than Bon Jovi and Aerosmith.  Too bad I wasn’t familiar with the band’s repertoire – my bad.  And, it turns out that asking for a refund will get you kicked out.  No problem.  Maybe the band repertoire was a wrong reason to ask a refund for.  Maybe I should have mentioned the horrible sound engineering instead.  It’s too late now anyway.

On the other hand, it looks like some people enjoyed the gig (there are YouTube videos).  So maybe I was inappropriate.  To each his own I guess.  TePee is not a rock bar in my book anymore.  And I’m not a wanted customer in TePee.  Fair enough.