Class NoSuchBeanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.RuntimeCamelException
org.apache.camel.NoSuchBeanException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoSuchBeanTypeException
Thrown when a bean cannot be found in the Camel
Registry by name or by type.
Raised by registry lookup methods such as
CamelContext.getRegistry().lookupByName(String),
CamelContext.getRegistry().lookupByNameAndType(String, Class), the bean component,
and the bean language when a referenced bean is absent or when more than one bean matches a given name (ambiguous
match). Route authors encountering this exception should verify that the required module is on the classpath and that
the bean name in the DSL matches exactly the name under which the bean was registered. The constructor variants
cover: name only, name with ambiguous count, name with expected type, and name with root cause.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoSuchBeanException(@Nullable String name, String type) NoSuchBeanException(String name) NoSuchBeanException(String name, int size) NoSuchBeanException(String name, String message, Throwable cause) NoSuchBeanException(String name, Throwable cause) -
Method Summary
Methods inherited from class RuntimeCamelException
wrapRuntimeCamelException, wrapRuntimeExceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchBeanException
- Parameters:
name- the bean name that could not be found
-
NoSuchBeanException
- Parameters:
name- the bean name that was looked upsize- the number of matching beans found (0 means none, >1 means ambiguous)
-
NoSuchBeanException
-
NoSuchBeanException
-
NoSuchBeanException
-
-
Method Details
-
getName
-