Add error matching dispatch for exception type
* usage:  with error.expected(KeyError):   x = d['nonexistentkey']