summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/Ex.java
diff options
context:
space:
mode:
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)");
+ }
}