Re: [Vala] Problems with "exceptions"



yes, that's is :) .

Thanks

2010/6/10 tecywiz121 <tecywiz121 hotmail com>

On Thu, 2010-06-10 at 02:14 +0200, CaStarCo wrote:
Hello, i have a little problem playing with "exceptions" in vala,

i have something like this:

errordomain SeldonTypeError {
BAD_VERIFIER
}

And runs ok, but.. how can i put inside the errordomain SeldonTypeError
another type of exception? such as.. BAD_GENERALIZER ?


I'm not 100% sure if I understand you correctly, but if you would like
to be able to throw SeldonTypeError.BAD_VERIFIER and
SeldonTypeError.BAD_GENERALIZER the errordomain would look like

errordomain SeldonTypeError
{
   BAD_VERIFIER,
   BAD_GENERALIZER
}

Hope that helps,
Sam




-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...       -


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