Class InjectionFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
build.codemodel.dependency.injection.InjectionException
build.codemodel.dependency.injection.InjectionFailedException
- All Implemented Interfaces:
Serializable
An
InjectionException thrown when injection into an InjectionPoint fails.- Since:
- May-2020
- Author:
- brian.oliver
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInjectionFailedException(InjectionPoint injectionPoint) Constructs aInjectionFailedException.InjectionFailedException(InjectionPoint injectionPoint, String message) Constructs anInjectionFailedExceptionwith a specific message.InjectionFailedException(InjectionPoint injectionPoint, String message, Throwable cause) Constructs anInjectionFailedExceptioncaused by a specificThrowablewith a provided message.InjectionFailedException(InjectionPoint injectionPoint, Throwable cause) Constructs anInjectionFailedExceptioncaused by a specificThrowable. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
InjectionFailedException
Constructs aInjectionFailedException.- Parameters:
injectionPoint- theInjectionPoint
-
InjectionFailedException
Constructs anInjectionFailedExceptionwith a specific message.- Parameters:
injectionPoint- theInjectionPointmessage- the message
-
InjectionFailedException
Constructs anInjectionFailedExceptioncaused by a specificThrowable.- Parameters:
injectionPoint- theInjectionPointcause- theThrowable
-
InjectionFailedException
Constructs anInjectionFailedExceptioncaused by a specificThrowablewith a provided message.- Parameters:
injectionPoint- theInjectionPointmessage- the messagecause- theThrowable
-
-
Method Details
-
injectionPoint
Obtains theInjectionPointthat failed.- Returns:
- the
InjectionPoint
-
toString
-