/** Evaluates the attributes and creates a Context instance.
* If the creation of the Context instance fails the ElementHandler
* is marked as failed which may affect the parent handler other.
*
* @param attributes Attributes of the XML tag.
*/
public final void start(Attributes attributes,
ExceptionListener exceptionListener)
{
try
{
// lets the subclass create the appropriate Context instance
context = startElement(attributes, exceptionListener);
}
catch (AssemblyException pe)
{
Throwable t = pe.getCause();
if (t instanceof Exception)
exceptionListener.exceptionThrown((Exception) t);
else
throw new InternalError("Unexpected Throwable type in AssemblerException. Please file a bug report.");
notifyContextFailed();
return;
}
}
AbstractElementHandler.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:javify
作者:
评论列表
文章目录