Package org.jboss.weld.exceptions
Class UnserializableDependencyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.enterprise.inject.spi.DeploymentException
org.jboss.weld.exceptions.DeploymentException
org.jboss.weld.exceptions.UnserializableDependencyException
- All Implemented Interfaces:
Serializable
Thrown if a simple bean is dependent scoped and injected into a stateful
session bean, into a non-transient field, bean constructor parameter or
initializer method parameter of a bean which declares a passivating scope, or
into a parameter of a producer method which declares a passivating scope
- Author:
- Pete Muir
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnserializableDependencyException(String message) Creates a new exception with the given localized message.UnserializableDependencyException(Throwable throwable) Creates a new exception with the given cause. -
Method Summary
Methods inherited from class org.jboss.weld.exceptions.DeploymentException
getLocalizedMessage, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnserializableDependencyException
Creates a new exception with the given cause.- Parameters:
throwable- The cause of the exception
-
UnserializableDependencyException
Creates a new exception with the given localized message.- Parameters:
message-
-