diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-21 11:03:19 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-21 11:03:19 -0230 |
commit | d6bbb689749d7eb25728feb2426fe4d9bcaaee69 (patch) | |
tree | df16c64ea4c2f728b435982660deea43f0252433 /java/src/IceInternal/Ex.java | |
parent | Bug 3957 - ensure python that starts scripts is same as one it uses internally (diff) | |
download | ice-d6bbb689749d7eb25728feb2426fe4d9bcaaee69.tar.bz2 ice-d6bbb689749d7eb25728feb2426fe4d9bcaaee69.tar.xz ice-d6bbb689749d7eb25728feb2426fe4d9bcaaee69.zip |
Bug 2798 - add reason information to MemoryLimitException
Diffstat (limited to 'java/src/IceInternal/Ex.java')
-rw-r--r-- | java/src/IceInternal/Ex.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/IceInternal/Ex.java b/java/src/IceInternal/Ex.java index aee311909f5..07ec004ff12 100644 --- a/java/src/IceInternal/Ex.java +++ b/java/src/IceInternal/Ex.java @@ -18,4 +18,9 @@ public class Ex actualType, expectedType); } + public static void throwMemoryLimitException(int requested, int maximum) + { + throw new Ice.MemoryLimitException("requested " + requested + " bytes, maximum allowed is " + maximum + + " bytes (see Ice.MessageSizeMax)"); + } } |