Package org.ametys.cms.workflow
Class EditContentAccessDeniedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.ametys.runtime.authentication.AccessDeniedException
-
- org.ametys.cms.workflow.EditContentAccessDeniedException
-
- All Implemented Interfaces:
Serializable
public class EditContentAccessDeniedException extends AccessDeniedException
Exception representing an error while editing a content.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EditContentAccessDeniedException(Content content, ModelItem modelItem)
Constructs a newEditContentAccessDeniedException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
getContent()
Get the content which the exception appears on.ModelItem
getModelItem()
Get the model item which the exception appears on.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
EditContentAccessDeniedException
public EditContentAccessDeniedException(Content content, ModelItem modelItem)
Constructs a newEditContentAccessDeniedException
. Message is automatically built.- Parameters:
content
- the content on which the exception occursmodelItem
- the model item on which the exception occurs
-
-
Method Detail
-
getContent
public Content getContent()
Get the content which the exception appears on.- Returns:
- the content
-
getModelItem
public ModelItem getModelItem()
Get the model item which the exception appears on.- Returns:
- the model item
-
-