diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-09-25 14:42:23 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-09-25 14:42:23 +0200 |
commit | f848c3f77e1b7e46013c4d24bd0da6c0d28c1fd9 (patch) | |
tree | 7fa5a29c0eda49684dd5ef6a7e6f2a5befaa0b55 /js/src/Ice/BasicStream.js | |
parent | Fixed previous fix for adapterDeactivation test warnings (diff) | |
download | ice-f848c3f77e1b7e46013c4d24bd0da6c0d28c1fd9.tar.bz2 ice-f848c3f77e1b7e46013c4d24bd0da6c0d28c1fd9.tar.xz ice-f848c3f77e1b7e46013c4d24bd0da6c0d28c1fd9.zip |
Fixed ICE-558 - Improved NoObjectFactoryException messages
Diffstat (limited to 'js/src/Ice/BasicStream.js')
-rw-r--r-- | js/src/Ice/BasicStream.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/js/src/Ice/BasicStream.js b/js/src/Ice/BasicStream.js index 81a6a7b5401..834250f84eb 100644 --- a/js/src/Ice/BasicStream.js +++ b/js/src/Ice/BasicStream.js @@ -508,7 +508,8 @@ var EncapsDecoder10 = Class(EncapsDecoder, { // if(!this._sliceObjects) { - throw new Ice.NoObjectFactoryException("object slicing is disabled", this._typeId); + throw new Ice.NoObjectFactoryException("no object factory found and object slicing is disabled", + this._typeId); } // @@ -792,9 +793,9 @@ var EncapsDecoder11 = Class(EncapsDecoder, { { if(this._current.sliceType === SliceType.ObjectSlice) { - throw new Ice.NoObjectFactoryException( - "compact format prevents slicing (the sender should use the sliced format instead)", - this._current.typeId); + throw new Ice.NoObjectFactoryException("no object factory found and compact format prevents slicing " + + "(the sender should use the sliced format instead)", + this._current.typeId); } if(this._current.typeId.indexOf("::") === 0) @@ -935,7 +936,8 @@ var EncapsDecoder11 = Class(EncapsDecoder, { // if(!this._sliceObjects) { - throw new Ice.NoObjectFactoryException("object slicing is disabled", this._current.typeId); + throw new Ice.NoObjectFactoryException("no object factory found and object slicing is disabled", + this._current.typeId); } // |