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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFinite pre-construction failure categories, independent of exception text. -
Method Summary
Modifier and TypeMethodDescriptionorg.j7m.middleware.application.api.InjectionDiagnosticReturns immutable structured evidence from the actual host validation failure.static ManagedInjectionExceptionfrom(ManagedContainer.Failure failure) Preserves an actual managed graph failure without retaining its original Throwable.static ManagedInjectionExceptionpreflight(Class<?> component, ManagedInjectionException.Reason reason) Creates safe module/provider evidence from an actual local class token.Methods inherited from class org.j7m.middleware.api.MiddlewareException
code, dirtyTarget, of, remote, remoteError, retryableMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 tokenreason- 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
-