public class ContentNotFoundException extends RuntimeException
Exception which is thrown when the content was not found.
| Constructor and Description |
|---|
ContentNotFoundException(String message,
ContentReference contentReference)
Creates a new exception with the message and the specified
ContentReference from the missing content. |
ContentNotFoundException(String message,
ContentReference contentReference,
Throwable cause)
Creates a new exception with the message and the specified
ContentReference from the missing content. |
| Modifier and Type | Method and Description |
|---|---|
ContentReference |
getContentReference()
Returns the
ContentReference of the missing content. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ContentNotFoundException(String message, ContentReference contentReference, Throwable cause)
Creates a new exception with the message and the specified ContentReference from the missing content.
message - the exception messagecontentReference - the content reference of the missing contentcause - the root cause of the ContentNotFoundExceptionpublic ContentNotFoundException(String message, ContentReference contentReference)
Creates a new exception with the message and the specified ContentReference from the missing content.
message - the exception messagecontentReference - the content reference of the missing contentpublic ContentReference getContentReference()
Returns the ContentReference of the missing content.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.