<DIV>hello everyone,</DIV>
<DIV> I use java to develop the vtk applications,vtk supplies some java interface class,I have a problem:How can I get the errors when error occur?</DIV>
<DIV> </DIV>
<DIV>Use the following code as a example,when the parameter of method is not correct,errors will occur,how can I get it?</DIV>
<DIV> </DIV>
<DIV>///////////////////////////////////////////////////////////</DIV>
<DIV> vtkVolume16Reader Reader=new vtkVolume16Reader();<BR> Reader.SetDataDimensions(64, 64);<BR> Reader.SetDataByteOrderToLittleEndian();<BR> Reader.SetFilePrefix(dir);<BR> Reader.SetDataSpacing(3.2,3.2,1.5);</DIV>
<DIV>//Reader.SetDataSpacing(1.0,1.0,2); //parameters is not correct<BR> Reader.SetImageRange(1, 93);</DIV>
<DIV>////////////////////////////////////////////////////////////</DIV>
<DIV> </DIV>
<DIV>can try...catch get anything?</DIV>
<DIV> </DIV>
<DIV>thanks for your view of the message.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV > </DIV><br><!-- footer --><br><hr>
<a style="font-size:12px;line-height:15px; color:#000; text-decoration:none" href="http://www.126.com/">想免费获得高速稳定的3G邮箱吗? <span style="font-family:Tahoma; text-decoration:underline; color:blue">www.126.com</span> </a>