net.sourceforge.wurfl.core.resource
Class HierarchyConsistencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sourceforge.wurfl.core.WURFLRuntimeException
                  extended by net.sourceforge.wurfl.core.resource.WURFLConsistencyException
                      extended by net.sourceforge.wurfl.core.resource.HierarchyConsistencyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CircularHierarchyException, OrphanHierarchyException

public abstract class HierarchyConsistencyException
extends WURFLConsistencyException

Generic hierarchy consistency exception.

This Exception is thrown when a inconsistent hierarchy is detected in WURFLModel.

Device hierarchy is defined as ordered list from generic to root device.
Example:
generic -> ... -> root

Version:
$Id: HierarchyConsistencyException.java 432 2010-05-06 12:12:53Z filippo.deluca $
Author:
Fantayeneh Asres Gizaw, Filippo De Luca
See Also:
Serialized Form

Constructor Summary
HierarchyConsistencyException(List hierarchy)
          Build this exception from a ModelDevice hierarchy.
HierarchyConsistencyException(List hierarchy, String message)
          Build this exception from a ModelDevice hierarchy and message.
 
Method Summary
 List getHierarchy()
          Returns the hierarchy source of this exception.
 
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
 

Constructor Detail

HierarchyConsistencyException

public HierarchyConsistencyException(List hierarchy,
                                     String message)
Build this exception from a ModelDevice hierarchy and message.

Parameters:
hierarchy - a List representing the object hierarchy.
message - The message to display.

HierarchyConsistencyException

public HierarchyConsistencyException(List hierarchy)
Build this exception from a ModelDevice hierarchy.

Parameters:
hierarchy - a List representing the object hierarchy.
message - The message to display.
Method Detail

getHierarchy

public List getHierarchy()
Returns the hierarchy source of this exception.

Returns:
The held hierarchy source of exception.


Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.