SLEPc convergence and error

I assume using a func, like in the case when one specifies a preconditioner for a KSP object.