|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.jsf.impl.util.ExceptionUtils
@Typed public abstract class ExceptionUtils
Method Summary | |
---|---|
static IllegalStateException |
ambiguousDefaultErrorViewDefinitionException(Class<? extends ViewConfig> newDef,
Class<? extends ViewConfig> existingDef)
Creates an exception if there are multiple classes which represent the same default-error-view |
static IllegalStateException |
ambiguousViewConfigRootException(Class storedPageClass,
Class viewConfigRootClass)
Creates an exception if there are multiple classes annotated with InlineViewConfigRoot in an web-app. |
static IllegalArgumentException |
ambiguousViewDefinitionException(String viewId,
Class<? extends ViewConfig> newDef,
Class<? extends ViewConfig> existingDef)
Creates an exception if there are multiple classes which represent the same view-id |
static RuntimeException |
conversationNotEditableException(Conversation conversation)
Creates an exception in case of a custom implementation of Conversation which doesn't implement
EditableConversation |
static IllegalArgumentException |
conversationNotFoundException(String conversationKey)
Creates an exception if there is no conversation with the given key |
static IllegalArgumentException |
invalidPhasesCallbackMethod(Class targetClass,
Method method)
Creates an exception if a method is annotated with BeforePhase or AfterPhase and
has an unsupported signature |
static IllegalStateException |
missingInlineViewConfigRootMarkerException(Class<? extends ViewConfig> viewDefinitionClass)
Creates an exception if Page
is used for a page bean and there is no class annotated with InlineViewConfigRoot
to mark the package root |
static RuntimeException |
tooManyOpenWindowException()
Creates an exception which signals that a user opened too many windows. |
static IllegalStateException |
unsupportedPhasesLifecycleCallback()
Creates an exception in case of an unsupported usage of BeforePhase |
static RuntimeException |
windowContextManagerNotEditableException(WindowContextManager windowContextManager)
Creates an exception in case of a custom implementation of WindowContextManager which doesn't implement
EditableWindowContextManager |
static RuntimeException |
windowContextNotEditableException(WindowContext windowContext)
Creates an exception in case of a custom implementation of WindowContext which doesn't implement
EditableWindowContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RuntimeException tooManyOpenWindowException()
public static RuntimeException windowContextManagerNotEditableException(WindowContextManager windowContextManager)
WindowContextManager
which doesn't implement
EditableWindowContextManager
windowContextManager
- found window-context-manager instance
public static RuntimeException windowContextNotEditableException(WindowContext windowContext)
WindowContext
which doesn't implement
EditableWindowContext
windowContext
- found window-context instance
public static RuntimeException conversationNotEditableException(Conversation conversation)
Conversation
which doesn't implement
EditableConversation
conversation
- found conversation instance
public static IllegalArgumentException invalidPhasesCallbackMethod(Class targetClass, Method method)
BeforePhase
or AfterPhase
and
has an unsupported signature
targetClass
- class which contains the methodmethod
- annotated but invalid method
public static IllegalStateException unsupportedPhasesLifecycleCallback()
BeforePhase
public static IllegalArgumentException conversationNotFoundException(String conversationKey)
conversationKey
- current conversation-key
public static IllegalStateException missingInlineViewConfigRootMarkerException(Class<? extends ViewConfig> viewDefinitionClass)
Page
is used for a page bean and there is no class annotated with InlineViewConfigRoot
to mark the package root
viewDefinitionClass
- class with the invalid usage
public static IllegalStateException ambiguousViewConfigRootException(Class storedPageClass, Class viewConfigRootClass)
InlineViewConfigRoot
in an web-app.
storedPageClass
- registered class which hosts InlineViewConfigRoot
viewConfigRootClass
- current class which also hosts InlineViewConfigRoot
public static IllegalArgumentException ambiguousViewDefinitionException(String viewId, Class<? extends ViewConfig> newDef, Class<? extends ViewConfig> existingDef)
viewId
- current view-idnewDef
- current view-config classexistingDef
- registered view-config class
public static IllegalStateException ambiguousDefaultErrorViewDefinitionException(Class<? extends ViewConfig> newDef, Class<? extends ViewConfig> existingDef)
newDef
- current view-config classexistingDef
- registered view-config class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |