Class CannotConstructException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CannotConstructException
    extends AssemblerException
    Exception used to report a failure of a group assembler to construct an object because there is no component assembler associated with the object's most specific type.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getAssemblerClass()
      Answer the Assembler that cannot do the construction.
      Resource getType()
      Answer the (alleged most-specific) type of the object that could not be constructed.
      • 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

      • CannotConstructException

        public CannotConstructException​(java.lang.Class<?> assemblerClass,
                                        Resource root,
                                        Resource type)
    • Method Detail

      • getAssemblerClass

        public java.lang.Class<?> getAssemblerClass()
        Answer the Assembler that cannot do the construction.
      • getType

        public Resource getType()
        Answer the (alleged most-specific) type of the object that could not be constructed.