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:
Binh-Minh Ribler 2017-09-14 14:33:40 -05:00
parent a6151aa4f2
commit 5cf381597d
16 changed files with 52 additions and 52 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}