@@ -97,7 +97,7 @@ VTKImageExport<TInputImage>::VTKImageExport()
9797 }
9898 else
9999 {
100- itkExceptionMacro (" Type currently not supported" );
100+ itkExceptionStringMacro (" Type currently not supported" );
101101 }
102102}
103103
@@ -141,7 +141,7 @@ VTKImageExport<TInputImage>::WholeExtentCallback()
141141
142142 if (!input)
143143 {
144- itkExceptionMacro (" Need to set an input" );
144+ itkExceptionStringMacro (" Need to set an input" );
145145 }
146146
147147 const InputRegionType region = input->GetLargestPossibleRegion ();
@@ -176,7 +176,7 @@ VTKImageExport<TInputImage>::SpacingCallback()
176176
177177 if (!input)
178178 {
179- itkExceptionMacro (" Need to set an input" );
179+ itkExceptionStringMacro (" Need to set an input" );
180180 }
181181
182182 const typename TInputImage::SpacingType & spacing = input->GetSpacing ();
@@ -233,7 +233,7 @@ VTKImageExport<TInputImage>::OriginCallback()
233233
234234 if (!input)
235235 {
236- itkExceptionMacro (" Need to set an input" );
236+ itkExceptionStringMacro (" Need to set an input" );
237237 }
238238
239239 const typename TInputImage::PointType & origin = input->GetOrigin ();
@@ -290,7 +290,7 @@ VTKImageExport<TInputImage>::DirectionCallback()
290290
291291 if (!input)
292292 {
293- itkExceptionMacro (" Need to set an input" );
293+ itkExceptionStringMacro (" Need to set an input" );
294294 }
295295
296296 const typename TInputImage::DirectionType & direction = input->GetDirection ();
@@ -363,7 +363,7 @@ VTKImageExport<TInputImage>::PropagateUpdateExtentCallback(int * extent)
363363 const InputImagePointer input = this ->GetInput ();
364364 if (!input)
365365 {
366- itkExceptionMacro (" Need to set an input" );
366+ itkExceptionStringMacro (" Need to set an input" );
367367 }
368368
369369 input->SetRequestedRegion (region);
@@ -383,7 +383,7 @@ VTKImageExport<TInputImage>::DataExtentCallback()
383383
384384 if (!input)
385385 {
386- itkExceptionMacro (" Need to set an input" );
386+ itkExceptionStringMacro (" Need to set an input" );
387387 }
388388
389389 const InputRegionType region = input->GetBufferedRegion ();
@@ -416,7 +416,7 @@ VTKImageExport<TInputImage>::BufferPointerCallback()
416416
417417 if (!input)
418418 {
419- itkExceptionMacro (" Need to set an input" );
419+ itkExceptionStringMacro (" Need to set an input" );
420420 }
421421
422422 return input->GetBufferPointer ();
0 commit comments