Re: [Vala] Problems with "exceptions"



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




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