summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2017-09-14 19:33:40 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2017-09-14 19:33:40 (GMT)
commit5cf381597dddc2f551a344a102a4975ea0d373af (patch)
tree8ebefabe80872042b441cfb34e740e6c44f5a8ea
parenta6151aa4f29fcb85047112f436fa21fde8f0da7b (diff)
downloadhdf5-5cf381597dddc2f551a344a102a4975ea0d373af.zip
hdf5-5cf381597dddc2f551a344a102a4975ea0d373af.tar.gz
hdf5-5cf381597dddc2f551a344a102a4975ea0d373af.tar.bz2
Fixed incorrect calls
Description: Replaced the calls to the deprecated function printError with printErrorStack in examples. Platforms tested: Linux/32 2.6 (jam)
-rw-r--r--c++/examples/chunks.cpp6
-rw-r--r--c++/examples/compound.cpp8
-rw-r--r--c++/examples/create.cpp8
-rw-r--r--c++/examples/extend_ds.cpp8
-rw-r--r--c++/examples/h5group.cpp8
-rw-r--r--c++/examples/h5tutr_cmprss.cpp6
-rw-r--r--c++/examples/h5tutr_crtatt.cpp8
-rw-r--r--c++/examples/h5tutr_crtdat.cpp6
-rw-r--r--c++/examples/h5tutr_crtgrp.cpp4
-rw-r--r--c++/examples/h5tutr_crtgrpar.cpp4
-rw-r--r--c++/examples/h5tutr_crtgrpd.cpp8
-rw-r--r--c++/examples/h5tutr_extend.cpp6
-rw-r--r--c++/examples/h5tutr_rdwt.cpp4
-rw-r--r--c++/examples/h5tutr_subset.cpp6
-rw-r--r--c++/examples/readdata.cpp8
-rw-r--r--c++/examples/writedata.cpp6
16 files changed, 52 insertions, 52 deletions
diff --git a/c++/examples/chunks.cpp b/c++/examples/chunks.cpp
index 836c86d..142e70f 100644
--- a/c++/examples/chunks.cpp
+++ b/c++/examples/chunks.cpp
@@ -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;
diff --git a/c++/examples/compound.cpp b/c++/examples/compound.cpp
index 2636d8e..192a1cf 100644
--- a/c++/examples/compound.cpp
+++ b/c++/examples/compound.cpp
@@ -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;
}
diff --git a/c++/examples/create.cpp b/c++/examples/create.cpp
index d4500f9..890fb03 100644
--- a/c++/examples/create.cpp
+++ b/c++/examples/create.cpp
@@ -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;
}
diff --git a/c++/examples/extend_ds.cpp b/c++/examples/extend_ds.cpp
index 0ecad1f..271100e 100644
--- a/c++/examples/extend_ds.cpp
+++ b/c++/examples/extend_ds.cpp
@@ -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;
diff --git a/c++/examples/h5group.cpp b/c++/examples/h5group.cpp
index 3e3ab4d..a8c9953 100644
--- a/c++/examples/h5group.cpp
+++ b/c++/examples/h5group.cpp
@@ -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;
diff --git a/c++/examples/h5tutr_cmprss.cpp b/c++/examples/h5tutr_cmprss.cpp
index ee2c544..9b1d2bc 100644
--- a/c++/examples/h5tutr_cmprss.cpp
+++ b/c++/examples/h5tutr_cmprss.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_crtatt.cpp b/c++/examples/h5tutr_crtatt.cpp
index db34353..f865501 100644
--- a/c++/examples/h5tutr_crtatt.cpp
+++ b/c++/examples/h5tutr_crtatt.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_crtdat.cpp b/c++/examples/h5tutr_crtdat.cpp
index e36a215..7cd49f8 100644
--- a/c++/examples/h5tutr_crtdat.cpp
+++ b/c++/examples/h5tutr_crtdat.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_crtgrp.cpp b/c++/examples/h5tutr_crtgrp.cpp
index 5462cbf..4bdb02c 100644
--- a/c++/examples/h5tutr_crtgrp.cpp
+++ b/c++/examples/h5tutr_crtgrp.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_crtgrpar.cpp b/c++/examples/h5tutr_crtgrpar.cpp
index 93bd08d..3e175d6 100644
--- a/c++/examples/h5tutr_crtgrpar.cpp
+++ b/c++/examples/h5tutr_crtgrpar.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_crtgrpd.cpp b/c++/examples/h5tutr_crtgrpd.cpp
index 96805a7..318ab1c 100644
--- a/c++/examples/h5tutr_crtgrpd.cpp
+++ b/c++/examples/h5tutr_crtgrpd.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_extend.cpp b/c++/examples/h5tutr_extend.cpp
index 703068a..8c1bc03 100644
--- a/c++/examples/h5tutr_extend.cpp
+++ b/c++/examples/h5tutr_extend.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_rdwt.cpp b/c++/examples/h5tutr_rdwt.cpp
index 5ab7ccc..4c9d49e 100644
--- a/c++/examples/h5tutr_rdwt.cpp
+++ b/c++/examples/h5tutr_rdwt.cpp
@@ -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;
}
diff --git a/c++/examples/h5tutr_subset.cpp b/c++/examples/h5tutr_subset.cpp
index 9ba2104..14a9ced 100644
--- a/c++/examples/h5tutr_subset.cpp
+++ b/c++/examples/h5tutr_subset.cpp
@@ -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;
}
diff --git a/c++/examples/readdata.cpp b/c++/examples/readdata.cpp
index fd88776..5a2f3bc 100644
--- a/c++/examples/readdata.cpp
+++ b/c++/examples/readdata.cpp
@@ -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;
}
diff --git a/c++/examples/writedata.cpp b/c++/examples/writedata.cpp
index e14e578..f5c06cf 100644
--- a/c++/examples/writedata.cpp
+++ b/c++/examples/writedata.cpp
@@ -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;
}