mirror of
https://github.com/esiur/esiur-js.git
synced 2025-06-27 07:13:12 +00:00
Exception
This commit is contained in:
@ -442,7 +442,7 @@ export default class Codec {
|
||||
length -= cs.size;
|
||||
}
|
||||
else
|
||||
throw new Exception("Error while parsing ValueInfo structured data");
|
||||
throw new Error("Error while parsing ValueInfo structured data");
|
||||
}
|
||||
|
||||
rt.seal();
|
||||
@ -536,7 +536,7 @@ export default class Codec {
|
||||
contentLength -= cs.size;
|
||||
}
|
||||
else
|
||||
throw new Exception("Error while parsing structured data");
|
||||
throw new Error("Error while parsing structured data");
|
||||
|
||||
}
|
||||
|
||||
|
@ -152,20 +152,20 @@ export default class DistributedResource extends IResource
|
||||
|
||||
_invokeByArrayArguments(index, args) {
|
||||
if (this.destroyed)
|
||||
throw new Exception("Trying to access destroyed object");
|
||||
throw new Error("Trying to access destroyed object");
|
||||
|
||||
if (index >= this.instance.template.functions.length)
|
||||
throw new Exception("Function index is incorrect");
|
||||
throw new Error("Function index is incorrect");
|
||||
|
||||
return this._p.connection.sendInvokeByArrayArguments(this._p.instanceId, index, args);
|
||||
}
|
||||
|
||||
_invokeByNamedArguments(index, namedArgs) {
|
||||
if (this.destroyed)
|
||||
throw new Exception("Trying to access destroyed object");
|
||||
throw new Error("Trying to access destroyed object");
|
||||
|
||||
if (index >= this.instance.template.functions.length)
|
||||
throw new Exception("Function index is incorrect");
|
||||
throw new Error("Function index is incorrect");
|
||||
|
||||
return this._p.connection.sendInvokeByNamedArguments(this._p.instanceId, index, namedArgs);
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ export default class NetworkBuffer {
|
||||
|
||||
holdFor(src, offset, size, needed) {
|
||||
if (size >= needed)
|
||||
throw new Exception("Size >= Needed !");
|
||||
throw new Error("Size >= Needed !");
|
||||
|
||||
this.data = DC.combine(src, offset, size, this.data, 0, this.data.length);
|
||||
this.neededDataLength = needed;
|
||||
|
Reference in New Issue
Block a user