00001
00002
00003 #ifndef _FLOW_EXCEPTION_H
00004 #define _FLOW_EXCEPTION_H
00005
00006 #include "Object.h"
00007 #include "ObjectRef.h"
00008
00009 namespace FD {
00010
00011 class FlowException : public Object {
00012 protected:
00013 ObjectRef thrown;
00014 public:
00015 FlowException(ObjectRef _thrown)
00016 : thrown(_thrown)
00017 {}
00018 ObjectRef getObject()
00019 {
00020 return thrown;
00021 }
00022
00023 void printOn(std::ostream &out=std::cout) const
00024 {
00025 out << "<FlowException " << thrown << " >";
00026 }
00027 };
00028
00029 }
00030
00031 #endif