Class NotExpectedTypeException

  • All Implemented Interfaces:

    public class NotExpectedTypeException
    extends AssemblerException
    Exception to throw when some (dynamically loaded) class isn't of the required type.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      NotExpectedTypeException​(Resource root, java.lang.Class<?> expectedType, java.lang.Class<?> actualType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getActualType()  
      java.lang.Class<?> getExpectedType()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NotExpectedTypeException

        public NotExpectedTypeException​(Resource root,
                                        java.lang.Class<?> expectedType,
                                        java.lang.Class<?> actualType)
    • Method Detail

      • getExpectedType

        public java.lang.Class<?> getExpectedType()
      • getActualType

        public java.lang.Class<?> getActualType()