[Qgis-developer] Quiet mode for providers

Martin Dobias wonder.sk at gmail.com
Fri Jun 11 06:44:24 EDT 2010


On Wed, Jun 9, 2010 at 7:23 PM, Jürgen E. <jef at norbit.de> wrote:
> Hi Giuseppe,
>
> On Wed, 09. Jun 2010 at 16:14:21 +0200, Giuseppe Sucameli wrote:
>> I think would be a good thing to have a quiet mode and a function to retrieve
>> the error message.  We already have vl.isValid() to test if it's all ok!
>
> I don't think we should have a special mode for that.  That should be the
> normal behaviour - invalidating the layer and offer the validation error on
> request.  We could also eliminate QgsMessageOutput.

I agree with Juergen. The current way of reporting errors is just a
legacy from the early days where there was no expectation that
providers would be instantiated in a different way than directly from
QGIS application.

Martin


More information about the Qgis-developer mailing list