Class UnassignableReturnException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnassignableReturnException
    extends java.lang.RuntimeException
    The type to be returned is not assignable to the return type. This exception is conceptually similar to a ClassCastException except that it is thrown before the cast would ever occur. For primitive return types, this is similar to a NullPointerException being thrown when the return value is null and therefore cannot be un-boxed.
    Since:
    4.2.0
    See Also:
    Serialized Form
    • Method Summary

      • 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