[Insight-developers] new specialized ExceptionObject macros
Bill Lorensen
bill.lorensen at gmail.com
Sun Nov 14 13:37:16 EST 2010
Luis,
I think they look good. I'm not sure how often applications
distinguish between exceptions. But since they are
itkExceptionObject's they don't affect applications that don't care.
However, they do bring up a possible backward compatibility issue down
the road. We have to be very careful how we name them. We will be
stuck with the names forever once we release them (I assume we agree
on that).
We need to come up with a naming convention.
Bill
On Sun, Nov 14, 2010 at 1:14 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> I certainly like the specialized exceptions :-)
>
> Maybe we could discussed them as a larger
> scale hierarchy on the ITK Wiki.
>
>
> Bill:
> do you have any concerns with these new
> exceptions ?
>
>
> Luis
>
>
> -----------------------------------------------
> On Fri, Nov 12, 2010 at 8:34 AM, Matthew McCormick (thewtex)
> <matt at mmmccormick.com> wrote:
>>
>> Hi all,
>>
>> When addressing a trivial bug, Luis Ibanez came up with some new
>> macros to declare and instantiate specialized itk::ExceptionObject
>> classes.
>>
>> You can check out the new code here:
>> http://review.source.kitware.com/#change,355
>>
>> An example application can be found here:
>> http://review.source.kitware.com/#change,356
>>
>> Specialized ExceptionObject's would be a Good Thing.
>>
>> Some points to discuss:
>>
>> Naming conventions -- Personally, I prefer the convention that when
>> possible the name of the exception embeds the name of the class it is
>> associates with. This would make it easy to where the exception came
>> from and where too look for its definition.
>>
>> Location -- same file, different file?
>>
>> Regards,
>> Matt
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>
>
More information about the Insight-developers
mailing list