Call to undefined method Error::viewException()