Re: [Vala] Construct exceptions from numeric error codes



Sandino Flores Moreno píše v Čt 11. 02. 2010 v 14:43 -0600:
I forgot to mention, this is the error I'm getting:

error: `GLib.Error' is not an error type
throw new GLib.Error(error_domain(), err, err.to_string());
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


I would try something like this:

var error = new GLib.Error (...);
throw error;

Anyway, I think the error you are getting is a bug.

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]