|
Content Assembler API 2.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.content.ContentExceptionFactory
public class ContentExceptionFactory
Provides convenience methods for constructing
ContentException
instances.
Constructor Summary | |
---|---|
ContentExceptionFactory()
|
Method Summary | |
---|---|
static ContentException |
forBadContentContext(ContentContext pContentContext)
Manufactures a ContentException indicating that the
evaluation context was not of the expected type. |
static ContentException |
forGeneralError(ContentContext pContentContext,
java.lang.Exception pCause)
Manufactures a ContentException with the given cause. |
static ContentException |
forGeneralError(ContentContext pContentContext,
java.lang.String pMessage)
Manufactures a ContentException with the given error message |
static ContentException |
forGeneralError(ContentResource pContentResource,
java.lang.Exception pCause)
Manufactures a ContentException with the given cause. |
static ContentException |
forUnexpectedNodeType(ContentContext pContentContext,
short pNodeType)
Manufactures a ContentException indicating that an
unexpected XML node type was encountered. |
static ContentException |
forUnexpectedTagName(ContentContext pContentContext,
java.lang.String pTagName)
Manufactures a ContentException indicating that an
unexpected tag name was encountered. |
static ContentException |
forUnexpectedTagName(ContentContext pContentContext,
java.lang.String pTagName,
java.lang.String pExpectedTagName)
Manufactures a ContentException indicating that an
unexpected tag name was encountered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentExceptionFactory()
Method Detail |
---|
public static ContentException forUnexpectedTagName(ContentContext pContentContext, java.lang.String pTagName, java.lang.String pExpectedTagName)
ContentException
indicating that an
unexpected tag name was encountered.
pContentContext
- The current evaluation contextpTagName
- The actual tag namepExpectedTagName
- The expected tag name
ContentException
public static ContentException forUnexpectedTagName(ContentContext pContentContext, java.lang.String pTagName)
ContentException
indicating that an
unexpected tag name was encountered.
pContentContext
- The current evaluation contextpTagName
- The actual tag name
ContentException
public static ContentException forUnexpectedNodeType(ContentContext pContentContext, short pNodeType)
ContentException
indicating that an
unexpected XML node type was encountered.
pContentContext
- The current evaluation contextpNodeType
- The actual node type
ContentException
public static ContentException forBadContentContext(ContentContext pContentContext)
ContentException
indicating that the
evaluation context was not of the expected type.
pContentContext
- The offending context
ContentException
public static ContentException forGeneralError(ContentContext pContentContext, java.lang.Exception pCause)
ContentException
with the given cause.
pContentContext
- The current evaluation contextpCause
- The cause of our problems
ContentException
public static ContentException forGeneralError(ContentResource pContentResource, java.lang.Exception pCause)
ContentException
with the given cause.
pContentResource
- The content resource for which the exception was
thrownpCause
- The cause of our problems
ContentException
public static ContentException forGeneralError(ContentContext pContentContext, java.lang.String pMessage)
ContentException
with the given error message
pContentContext
- The current evaluation contextpMessage
- The message to include
ContentException
|
Content Assembler API 2.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@VERSION PRODUCT: Content Assembler API (ContentAssemblerAPIJava) VERSION: 2.1.2 BUILD: 54DEV ARCH_OS: n/a DATE: 2012-02-16T20:28:44-0500