From: <vm...@us...> - 2009-07-08 10:24:05
|
Revision: 11378 http://swig.svn.sourceforge.net/swig/?rev=11378&view=rev Author: vmiklos Date: 2009-07-08 10:24:02 +0000 (Wed, 08 Jul 2009) Log Message: ----------- PHP: Implement DirectorMethodException Modified Paths: -------------- branches/gsoc2009-vmiklos/Lib/php/director.swg Modified: branches/gsoc2009-vmiklos/Lib/php/director.swg =================================================================== --- branches/gsoc2009-vmiklos/Lib/php/director.swg 2009-07-07 16:11:22 UTC (rev 11377) +++ branches/gsoc2009-vmiklos/Lib/php/director.swg 2009-07-08 10:24:02 UTC (rev 11378) @@ -85,6 +85,20 @@ throw DirectorPureVirtualException(msg); } }; + /* any php exception that occurs during a director method call */ + class DirectorMethodException : public Swig::DirectorException + { + public: + DirectorMethodException(const char* msg) + : DirectorException(E_ERROR, "Swig director method error", msg) + { + } + + static void raise(const char *msg) + { + throw DirectorMethodException(msg); + } + }; } #endif /* __cplusplus */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |