com.gentics.cr.portlet.exception
Class ContentNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.portlet.PortletException
              extended by com.gentics.cr.portlet.exception.ContentNotFoundException
All Implemented Interfaces:
Serializable

public class ContentNotFoundException
extends javax.portlet.PortletException

The class ContentNotFoundException.

This exception is thrown when the content with the specified content id is not found in a content displaying portlet

See Also:
Serialized Form
 

Field Summary
private  String contentId
          The content id.
private static long serialVersionUID
          The Constant serialVersionUID.
 
Constructor Summary
ContentNotFoundException(String message)
          Instantiates a new content not found exception.
ContentNotFoundException(String message, String id)
          Instantiates a new content not found exception.
ContentNotFoundException(String message, String id, Throwable t)
          Instantiates a new content not found exception.
ContentNotFoundException(String message, Throwable t)
          Instantiates a new content not found exception.
 
Method Summary
 String getContentId()
          Gets the content id.
 void setContentId(String contentId)
          Sets the content id.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The Constant serialVersionUID.

See Also:
Constant Field Values

contentId

private String contentId
The content id.

Constructor Detail

ContentNotFoundException

public ContentNotFoundException(String message)
Instantiates a new content not found exception.

Parameters:
message - the message

ContentNotFoundException

public ContentNotFoundException(String message,
                                String id)
Instantiates a new content not found exception.

Parameters:
message - the message
id - the id

ContentNotFoundException

public ContentNotFoundException(String message,
                                Throwable t)
Instantiates a new content not found exception.

Parameters:
message - the message
t - the t

ContentNotFoundException

public ContentNotFoundException(String message,
                                String id,
                                Throwable t)
Instantiates a new content not found exception.

Parameters:
message - the message
id - the id
t - the t
Method Detail

getContentId

public String getContentId()
Gets the content id.

Returns:
the content id

setContentId

public void setContentId(String contentId)
Sets the content id.

Parameters:
contentId - the new content id


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.