#include "Utility/ExH/System/Exception.hpp"
#include "Utility/ExH/Logic/Exception.hpp"
#include <iostream>
using std::cerr;
using std::endl;
struct SubsystemA
{
  class Exception : public Utility::ExH::Logic::Exception {};
  void
  foo () throw (Exception)
  {
    throw Exception ();
  }
};
struct SubsystemB
{
  void
  foo () throw (Utility::ExH::System::Exception)
  {
    SubsystemA a;
    a.foo ();
    }
};
int
main ()
{
  try
  {
    SubsystemB b;
    b.foo ();
  }
  catch (Utility::ExH::System::Exception const& ex)
  {
    cerr << "Caught Utility::ExH::System::Exception: "
         << ex.what ()
         << endl;
  }
}