Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 41x 41x 41x 41x 41x 41x 1x 1x 1x 1x 1x 1x 41x 41x 3x 3x 3x 3x | // Copyright (c) ZeroC, Inc.
import { MarshalException } from "./LocalExceptions.js";
import { UnknownSlicedValue } from "./UnknownSlicedValue.js";
export function throwUOE(expectedType, v) {
if (v instanceof UnknownSlicedValue) {
throw new MarshalException(`The Slice loader did not find a class for type ID '${v.ice_id()}'.`);
}
throw new MarshalException(
`Failed to unmarshal class with type ID '${expectedType}': the Slice loader returned class with type ID '${v.ice_id()}'.`,
);
}
export function throwMemoryLimitException(requested, maximum) {
throw new MarshalException(
`Cannot unmarshal Ice message: the message size of ${requested} bytes exceeds the maximum allowed of ${maximum} bytes (see Ice.MessageSizeMax).`,
);
}
|