Class MethodKey.AmbiguousException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.jexl3.internal.introspection.MethodKey.AmbiguousException
- All Implemented Interfaces:
Serializable
- Enclosing class:
MethodKey
Simple distinguishable exception, used when
we run across ambiguous overloading. Caught
by the introspector.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Version identifier for serializable.private final boolean
Whether this exception should be considered severe. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSevere()
Whether this exception is considered severe or benign.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDVersion identifier for serializable.- See Also:
-
severe
private final boolean severeWhether this exception should be considered severe.
-
-
Constructor Details
-
AmbiguousException
AmbiguousException(boolean flag) A severe or not ambiguous exception.- Parameters:
flag
- logging flag
-
-
Method Details
-
isSevere
public boolean isSevere()Whether this exception is considered severe or benign.Note that this is meant in the context of an ambiguous exception; benign cases can only be triggered by null arguments often related to runtime problems (not simply on overload signatures).
- Returns:
- true if severe, false if benign.
-