JObject::setError

Add an error message.