Can you explain what is worse, exactly, and what you feel would make a
better design? We're not yet to even alpha stage, so changes can be
made.....
On Oct 14, 2013 12:36 PM, "Marco Pivetta" <notifications@github.com> wrote:

> In src/ZF/ApiProblem/View/ApiProblemStrategy.php:
>
> >          if (!is_string($result)) {
> >              // We don't have a string, and thus, no JSON
> >              return;
> >          }
> >
> > -        $model       = $e->getModel();
> > +        $model = $e->getModel();
> >          if (!$model instanceof ApiProblemModel) {
>
> Yes, this is worse.
>
> I agree on the exception types, but the exception interface is VERY
> simple, and building an opinionated serializer around it is simple and does
> not need that much flexibility since the Exception signature defines a
> lot of final methods.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zfcampus/zf-api-problem/pull/1/files#r6949949>
> .
>