Enum Plugin.Engine.ErrorHandler.Failing

    • Constructor Detail

      • Failing

        private Failing()
    • Method Detail

      • values

        public static Plugin.Engine.ErrorHandler.Failing[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Plugin.Engine.ErrorHandler.Failing c : Plugin.Engine.ErrorHandler.Failing.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Plugin.Engine.ErrorHandler.Failing valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • onError

        public void onError​(Plugin plugin,
                            java.lang.Throwable throwable)
        Invoked at the end of the build if a plugin could not be closed.
        Specified by:
        onError in interface Plugin.Engine.ErrorHandler
        Parameters:
        plugin - The plugin that could not be closed.
        throwable - The error that was caused when the plugin was attempted to be closed.
      • onLiveInitializer

        public void onLiveInitializer​(TypeDescription typeDescription,
                                      TypeDescription definingType)
        Invoked if a type transformation implied a live initializer.
        Specified by:
        onLiveInitializer in interface Plugin.Engine.ErrorHandler
        Parameters:
        typeDescription - The type that was transformed.
        definingType - The type that implies the initializer which might be the type itself or an auxiliary type.
      • onUnresolved

        public void onUnresolved​(java.lang.String typeName)
        Invoked if a type could not be resolved.
        Specified by:
        onUnresolved in interface Plugin.Engine.ErrorHandler
        Parameters:
        typeName - The name of the unresolved type.
      • onManifest

        public void onManifest​(java.util.jar.Manifest manifest)
        Invoked when a manifest was found or found missing.
        Specified by:
        onManifest in interface Plugin.Engine.ErrorHandler
        Parameters:
        manifest - The located manifest or null if no manifest was found.
      • onResource

        public void onResource​(java.lang.String name)
        Invoked if a resource that is not a class file is discovered.
        Specified by:
        onResource in interface Plugin.Engine.ErrorHandler
        Parameters:
        name - The name of the discovered resource.