net.sourceforge.wurfl.core.resource
Class GroupConsistencyException

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.DeviceConsistencyException
                          extended by net.sourceforge.wurfl.core.resource.GroupConsistencyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InexistentGroupException

public abstract class GroupConsistencyException
extends DeviceConsistencyException

Generic group consistency exception.

This abstract Exception is thrown when a ModelDevice has a bad group definition.

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

Constructor Summary
GroupConsistencyException(ModelDevice device, String group)
          Build this Exception by Group identifier and source device.
GroupConsistencyException(ModelDevice device, String group, String message)
          Build this Exception by Group identifier, source device and message.
 
Method Summary
 String getGroup()
          Return the group object of this exception.
 
Methods inherited from class net.sourceforge.wurfl.core.resource.DeviceConsistencyException
getDevice
 
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

GroupConsistencyException

public GroupConsistencyException(ModelDevice device,
                                 String group)
Build this Exception by Group identifier and source device.

Parameters:
device - The ModelDevice having bad group definition.
group - The group object of this Exception.

GroupConsistencyException

public GroupConsistencyException(ModelDevice device,
                                 String group,
                                 String message)
Build this Exception by Group identifier, source device and message.

Parameters:
device - The ModelDevice having bad group definition.
group - The group object of this Exception.
message - The message displaying by this exception.
Method Detail

getGroup

public String getGroup()
Return the group object of this exception.

Returns:
Identifier of group object of this instance.


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