summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/Ex.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-04-21 11:03:19 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-04-21 11:03:19 -0230
commitd6bbb689749d7eb25728feb2426fe4d9bcaaee69 (patch)
treedf16c64ea4c2f728b435982660deea43f0252433 /java/src/IceInternal/Ex.java
parentBug 3957 - ensure python that starts scripts is same as one it uses internally (diff)
downloadice-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.java5
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)");
+ }
}