Class ASTElementLimitExceeded
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.matheclipse.parser.client.math.MathException
-
- org.matheclipse.core.eval.exception.SymjaMathException
-
- org.matheclipse.core.eval.exception.FlowControlException
-
- org.matheclipse.core.eval.exception.LimitException
-
- org.matheclipse.core.eval.exception.ASTElementLimitExceeded
-
- All Implemented Interfaces:
Serializable
public class ASTElementLimitExceeded extends LimitException
Exception which will be thrown, if the Config.MAX_AST_SIZE limit was exceeded.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ASTElementLimitExceeded(int rowDimension, int columnDimension)
Set the exceeded limit to(long)rowDimension*(long)columnDimension
.ASTElementLimitExceeded(long requestedCapacity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
static void
throwIt(long requestedCapacity)
Throws exception which will be thrown, if the Config.MAX_AST_SIZE limit was exceeded.-
Methods inherited from class org.matheclipse.core.eval.exception.SymjaMathException
fillInStackTrace, of
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ASTElementLimitExceeded
public ASTElementLimitExceeded(long requestedCapacity)
-
ASTElementLimitExceeded
public ASTElementLimitExceeded(int rowDimension, int columnDimension)
Set the exceeded limit to(long)rowDimension*(long)columnDimension
.- Parameters:
rowDimension
-columnDimension
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
throwIt
public static void throwIt(long requestedCapacity)
Throws exception which will be thrown, if the Config.MAX_AST_SIZE limit was exceeded.Usage:
if (Config.MAX_AST_SIZE < requestedCapacity) { ASTElementLimitExceeded.throwIt(requestedCapacity); }
- Parameters:
requestedCapacity
-
-
-