Class ManagedInjectionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.j7m.middleware.api.MiddlewareException
org.j7m.middleware.application.components.ManagedInjectionException
All Implemented Interfaces:
Serializable

public final class ManagedInjectionException extends org.j7m.middleware.api.MiddlewareException
Safe typed activation failure retaining structured injection evidence across the host boundary. No application Throwable, constructor argument, configuration or qualifier value is retained. Operators may inspect diagnostic() locally; the ordinary error carries only a stable reason code.
See Also:
  • Method Details

    • from

      Preserves an actual managed graph failure without retaining its original Throwable.
      Parameters:
      failure - actual container failure with internally bounded diagnostic metadata
      Returns:
      safe immutable diagnostic exception
      Throws:
      NullPointerException - for missing evidence
    • preflight

      public static ManagedInjectionException preflight(Class<?> component, ManagedInjectionException.Reason reason)
      Creates safe module/provider evidence from an actual local class token.
      Parameters:
      component - actual class involved, null only when provider enumeration failed before a token
      reason - finite failure category
      Returns:
      payload-free diagnostic exception
      Throws:
      NullPointerException - for a missing reason
    • diagnostic

      public org.j7m.middleware.application.api.InjectionDiagnostic diagnostic()
      Returns immutable structured evidence from the actual host validation failure.
      Returns:
      bounded graph or module diagnostic without application exception messages