Class Plugin.Engine.Dispatcher.Materializable.ForFailedElement

    • Field Detail

      • typeDescription

        private final TypeDescription typeDescription
        The type description for the represented type.
      • errored

        private final java.util.List<java.lang.Throwable> errored
        A non-empty list of errors that occurred when attempting the transformation.
    • Constructor Detail

      • ForFailedElement

        protected ForFailedElement​(Plugin.Engine.Source.Element element,
                                   TypeDescription typeDescription,
                                   java.util.List<java.lang.Throwable> errored)
        Creates a new materializable for an element that failed to be transformed.
        Parameters:
        element - The element for which the transformation failed.
        typeDescription - The type description for the represented type.
        errored - A non-empty list of errors that occurred when attempting the transformation.
    • Method Detail

      • materialize

        public void materialize​(Plugin.Engine.Target.Sink sink,
                                java.util.List<TypeDescription> transformed,
                                java.util.Map<TypeDescription,​java.util.List<java.lang.Throwable>> failed,
                                java.util.List<java.lang.String> unresolved)
                         throws java.io.IOException
        Materializes this work result and adds any results to the corresponding collection.
        Specified by:
        materialize in interface Plugin.Engine.Dispatcher.Materializable
        Parameters:
        sink - The sink to write any work to.
        transformed - A list of all types that are transformed.
        failed - A mapping of all types that failed during transformation to the exceptions that explain the failure.
        unresolved - A list of type names that could not be resolved.
        Throws:
        java.io.IOException - If an I/O exception occurs.