wpSetError sets the last error on an object. The error identity is retrievable by issuing a call to the wpQueryError method.