Class ListenerInvocationNotAllowedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException
-
- All Implemented Interfaces:
Serializable
public class ListenerInvocationNotAllowedException extends RuntimeException
Thrown when a listener invocation is attempted on a component or behavior that does not allow it. For example, somehow the user attempted to invoke link's onclick method on a disabled link.- Author:
- igor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListenerInvocationNotAllowedException(Component component, Behavior behavior, String message)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Behavior
getBehavior()
Component
getComponent()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ListenerInvocationNotAllowedException
public ListenerInvocationNotAllowedException(Component component, Behavior behavior, String message)
Constructor- Parameters:
component
-behavior
-message
-
-
-
Method Detail
-
getComponent
public Component getComponent()
- Returns:
- component that was the target of invocation or hosted the behavior that was
-
getBehavior
public Behavior getBehavior()
- Returns:
- behavior that was the target of invocation or
null
-
-