[vtkusers] Get Exceptions

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Sep 1 09:53:32 EDT 2004


Marcelo,

	You can use AddObserver on ErrorEvent. vtkErrorMacro always invoke an 
ErrorEvent. I guess you should be able to find some examples in the ML 
archive (mostly python I believe).

HTH
Mathieu

marcelo oliveira wrote:
> Hi user´s !!!!
>  
> I´ve working in a project that have to select a lot of kind images and i 
> would like to use:
>  
> Try and Catch such in ITK.
>  
> How can i get a Exception in VTK, for example;
>  
> try
> {
>      Read a DICOM image
> }
> catch ( vtk::Exception &err )
> {
>  
>      Read JPG
> }
>  
> 
> ------------------------------------------------------------------------
> Yahoo! Acesso Grátis 
> <http://br.rd.yahoo.com/mail/taglines/*http://br.acesso.yahoo.com/> - 
> navegue de graça com conexão de qualidade!
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers






More information about the vtkusers mailing list