Class MethodKey.AmbiguousException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    MethodKey

    public static class MethodKey.AmbiguousException
    extends java.lang.RuntimeException
    Simple distinguishable exception, used when we run across ambiguous overloading. Caught by the introspector.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Version identifier for serializable.
      private boolean severe
      Whether this exception should be considered severe.
    • Constructor Summary

      Constructors 
      Constructor Description
      AmbiguousException​(boolean flag)
      A severe or not ambiguous exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Version identifier for serializable.
        See Also:
        Constant Field Values
      • severe

        private final boolean severe
        Whether this exception should be considered severe.
    • Constructor Detail

      • AmbiguousException

        AmbiguousException​(boolean flag)
        A severe or not ambiguous exception.
        Parameters:
        flag - logging flag
    • Method Detail

      • 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.