Re: [gentoo-portage-dev] Composite exceptions?

2010-02-27 Thread Sebastian Pipping
Good idea, thank you! Sebastian

[gentoo-portage-dev] Composite exceptions?

2010-02-26 Thread Sebastian Pipping
Hello! I was wondering how to best handle a case with functions that I would like to collect several exceptions from. Is there an existing standard way to solve this? I was thinking of using the composite pattern for this allowing to throw a tree of exceptions with the option to flatten it for

Re: [gentoo-portage-dev] Composite exceptions?

2010-02-26 Thread Zac Medico
On 02/26/2010 07:11 PM, Sebastian Pipping wrote: Hello! I was wondering how to best handle a case with functions that I would like to collect several exceptions from. Is there an existing standard way to solve this? I was thinking of using the composite pattern for this allowing to

Re: [gentoo-portage-dev] Composite exceptions?

2010-02-26 Thread Sebastian Pipping
On 02/27/10 04:20, Zac Medico wrote: Do you have an example case where you want to use this? Multiple defects in metadata.xml are such a case. At some point all the exceptions will have to collected, e.g. two invalid herds are mentioned. In that case a single exception with a list of invalid

Re: [gentoo-portage-dev] Composite exceptions?

2010-02-26 Thread Brian Harring
On Sat, Feb 27, 2010 at 05:02:18AM +0100, Sebastian Pipping wrote: On 02/27/10 04:20, Zac Medico wrote: Do you have an example case where you want to use this? Multiple defects in metadata.xml are such a case. At some point all the exceptions will have to collected, e.g. two invalid herds

Re: [gentoo-portage-dev] Composite exceptions?

2010-02-26 Thread Zac Medico
On 02/26/2010 08:27 PM, Brian Harring wrote: On Sat, Feb 27, 2010 at 05:02:18AM +0100, Sebastian Pipping wrote: On 02/27/10 04:20, Zac Medico wrote: Do you have an example case where you want to use this? Multiple defects in metadata.xml are such a case. At some point all the exceptions will