mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
Fixed incorrect calls
Description: Replaced the calls to the deprecated function printError with printErrorStack in examples. Platforms tested: Linux/32 2.6 (jam)
This commit is contained in:
parent
a6151aa4f2
commit
5cf381597d
@ -209,21 +209,21 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -174,28 +174,28 @@ int main(void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataTypeIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -99,28 +99,28 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataTypeIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -204,28 +204,28 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataTypeIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -188,28 +188,28 @@ int main(void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the Attribute operations
|
||||
catch( AttributeIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -132,21 +132,21 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch(DataSetIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch(DataSpaceIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -59,28 +59,28 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the H5File operations
|
||||
catch( AttributeIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -53,21 +53,21 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch(DataSetIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch(DataSpaceIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -48,13 +48,13 @@ int main(void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
// catch failure caused by the Group operations
|
||||
catch(GroupIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -68,14 +68,14 @@ int main(void)
|
||||
// catch failure caused by the File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the Group operations
|
||||
catch(GroupIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -106,27 +106,27 @@ int main(void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
// catch failure caused by the DataSet operations
|
||||
catch(DataSetIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch(DataSpaceIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the Group operations
|
||||
catch(GroupIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -147,21 +147,21 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch(DataSetIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch(DataSpaceIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -58,14 +58,14 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch(DataSetIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -153,21 +153,21 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch(FileIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch(DataSetIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch(DataSpaceIException error)
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -182,28 +182,28 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataTypeIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -306,21 +306,21 @@ int main (void)
|
||||
// catch failure caused by the H5File operations
|
||||
catch( FileIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSet operations
|
||||
catch( DataSetIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// catch failure caused by the DataSpace operations
|
||||
catch( DataSpaceIException error )
|
||||
{
|
||||
error.printError();
|
||||
error.printErrorStack();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user