Class BeanNotOfRequiredTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class BeanNotOfRequiredTypeException
    extends BeanRuleException
    Thrown when a bean doesn't match the expected type
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getRequiredType()
      Gets the required type.
      • 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
    • Constructor Detail

      • BeanNotOfRequiredTypeException

        public BeanNotOfRequiredTypeException​(java.lang.Class<?> requiredType,
                                              BeanRule beanRule)
        Create a new BeanNotOfRequiredTypeException.
        Parameters:
        requiredType - the required type
        beanRule - the bean rule
    • Method Detail

      • getRequiredType

        public java.lang.Class<?> getRequiredType()
        Gets the required type.
        Returns:
        the required type