summaryrefslogtreecommitdiff
path: root/php/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-02-25 00:07:23 +0000
committerMark Spruiell <mes@zeroc.com>2004-02-25 00:07:23 +0000
commit11dbe2c99221c2ea66cc8cdd061b27f215d025c3 (patch)
tree0a19ad80ee793c3c1500b8c090ec0e730ba732d0 /php/src
parentfix for knownIntermediateAsknownIntermediate (diff)
downloadice-11dbe2c99221c2ea66cc8cdd061b27f215d025c3.tar.bz2
ice-11dbe2c99221c2ea66cc8cdd061b27f215d025c3.tar.xz
ice-11dbe2c99221c2ea66cc8cdd061b27f215d025c3.zip
adding __toString to certain exceptions
Diffstat (limited to 'php/src')
-rw-r--r--php/src/ice/profile.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/php/src/ice/profile.cpp b/php/src/ice/profile.cpp
index d438f523d19..4dac82b28f4 100644
--- a/php/src/ice/profile.cpp
+++ b/php/src/ice/profile.cpp
@@ -106,6 +106,11 @@ static const char* _coreTypes =
" Ice_LocalException::__construct($message);\n"
" }\n"
"\n"
+ " function __toString()\n"
+ " {\n"
+ " return $this->unknown;\n"
+ " }\n"
+ "\n"
" var $unknown;\n"
"}\n"
"\n"
@@ -132,6 +137,14 @@ static const char* _coreTypes =
" Ice_LocalException::__construct($message);\n"
" }\n"
"\n"
+ " function __toString()\n"
+ " {\n"
+ " return get_class($this) . \"\\n\" .\n"
+ " \" identity: \" . Ice_identityToString($this->id) . \"\\n\" .\n"
+ " \" facet: \" . implode(',', $this->facet) . \"\\n\" .\n"
+ " \" operation: \" . $this->operation;\n"
+ " }\n"
+ "\n"
" var $id;\n"
" var $facet;\n"
" var $operation;\n"
@@ -184,6 +197,11 @@ static const char* _coreTypes =
" Ice_MarshalException::__construct($message);\n"
" }\n"
"\n"
+ " function __toString()\n"
+ " {\n"
+ " return \"Ice_NoObjectFactoryException (type = `\" . $this->type . \"')\";\n"
+ " }\n"
+ "\n"
" var $type;\n"
"}\n"
"\n"