Yaf_Exception_TypeError is thrown when an argument passed to a Yaf method is of an unexpected type or an invalid value. Its error code is 521.
521