org.hippoecm.hst.util
Class PageErrorUtils

java.lang.Object
  extended by org.hippoecm.hst.util.PageErrorUtils

public class PageErrorUtils
extends Object

PageErrorUtils

Version:
$Id: PageErrorUtils.java 21593 2010-02-09 12:18:43Z wko $

Method Summary
static Collection<HstComponentInfo> getComponentInfosByCauseType(PageErrors pageErrors, Class<? extends Throwable> causeType)
          Returns all component infos which generated exceptions of the causeType.
static Collection<HstComponentException> getExceptionsByCauseType(PageErrors pageErrors, Class<? extends Throwable> causeType)
          Returns all exceptions which have the causeType.
static Collection<HstComponentException> getExceptionsByCauseType(PageErrors pageErrors, HstComponentInfo componentInfo, Class<? extends Throwable> causeType)
          Returns all exceptions which have the causeType and generated by a component of componentInfo.
static Collection<HstComponentException> getExceptionsByComponentClassName(PageErrors pageErrors, String className)
          Returns exceptions generated by a component specified by the class name.
static Collection<HstComponentException> getExceptionsByComponentId(PageErrors pageErrors, String id)
          Returns exceptions generated by a component specified by the id.
static Collection<HstComponentException> getExceptionsByComponentName(PageErrors pageErrors, String name)
          Returns exceptions generated by a component specified by the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExceptionsByComponentClassName

public static Collection<HstComponentException> getExceptionsByComponentClassName(PageErrors pageErrors,
                                                                                  String className)
Returns exceptions generated by a component specified by the class name. If no exception found, then it returns an empty collection.

Parameters:
pageErrors -
className -
Returns:

getExceptionsByComponentName

public static Collection<HstComponentException> getExceptionsByComponentName(PageErrors pageErrors,
                                                                             String name)
Returns exceptions generated by a component specified by the name. If no exception found, then it returns an empty collection.

Parameters:
pageErrors -
name -
Returns:

getExceptionsByComponentId

public static Collection<HstComponentException> getExceptionsByComponentId(PageErrors pageErrors,
                                                                           String id)
Returns exceptions generated by a component specified by the id. If no exception found, then it returns an empty collection.

Parameters:
pageErrors -
id -
Returns:

getComponentInfosByCauseType

public static Collection<HstComponentInfo> getComponentInfosByCauseType(PageErrors pageErrors,
                                                                        Class<? extends Throwable> causeType)
Returns all component infos which generated exceptions of the causeType.

Parameters:
pageErrors -
causeType -
Returns:

getExceptionsByCauseType

public static Collection<HstComponentException> getExceptionsByCauseType(PageErrors pageErrors,
                                                                         HstComponentInfo componentInfo,
                                                                         Class<? extends Throwable> causeType)
Returns all exceptions which have the causeType and generated by a component of componentInfo.

Parameters:
pageErrors -
causeType -
Returns:

getExceptionsByCauseType

public static Collection<HstComponentException> getExceptionsByCauseType(PageErrors pageErrors,
                                                                         Class<? extends Throwable> causeType)
Returns all exceptions which have the causeType.

Parameters:
pageErrors -
causeType -
Returns:


Copyright © 2008-2012 Hippo. All Rights Reserved.