Fixed InitializeException issues
authorErich Keane <erich.keane@intel.com>
Mon, 16 Mar 2015 20:38:00 +0000 (13:38 -0700)
committerSashi Penta <sashi.kumar.penta@intel.com>
Wed, 18 Mar 2015 23:27:27 +0000 (23:27 +0000)
commit50d2c3bd84103aa78aeedfd9ea73f5419931e92a
tree9a299c00f846114aab18598f18b63e677f93fb1a
parent6f0c47de9f43ee6eba79c4ea2ab555e6b570919e
Fixed InitializeException issues

InitializeException had a number of minor issues that are repaired in
this fix.  Note that the interface of InitializeException changes a bit,
however it seems that no one is actually catching InitializeException
anywhere, so they wouldn't be able to use the old version.

This fix switches InitializeException to inherit from OCException,
permitting us to catch it properly, rather than being a different exception
type.  This results in the reason, code, and 'what' methods working properly
in both cases, rather than differing slightly by behavior.

Change-Id: If41377af1b1c4ef7297ae9644ef2e7e7e4f8b603
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/483
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/include/InitializeException.h