Package org.apache.juneau.commons.inject
Class BeanCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.commons.inject.BeanCreationException
- All Implemented Interfaces:
Serializable
Unchecked exception thrown when a bean creator method is found but its invocation fails.
Thrown by BeanStore.createBeanFromMethod(Class, Object, java.util.function.Predicate, Object[]) when a matching
factory method is located but throws an exception during invocation. Wrapping in an unchecked type makes
the exception compatible with Optional chaining and lambda contexts.
See Also:
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBeanCreationException(String message) Constructor.BeanCreationException(String message, Throwable cause) Constructor.BeanCreationException(Throwable cause) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanCreationException
Constructor.- Parameters:
message- The detail message.
-
BeanCreationException
Constructor.- Parameters:
message- The detail message.cause- The cause.
-
BeanCreationException
Constructor.- Parameters:
cause- The cause.
-