net.sourceforge.wurfl.core.resource
Class DeviceConsistencyException

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CapabilityConsistencyException, GroupConsistencyException, UserAgentConsistencyException

public abstract class DeviceConsistencyException
extends WURFLConsistencyException

Device generic consistency exception.

This is abstract Exception representing an exception occurred for a Consistency problem detected in a ModelDevice instance.

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

Constructor Summary
DeviceConsistencyException(ModelDevice device)
          Build an Exception from target ModelDevice.
DeviceConsistencyException(ModelDevice device, String message)
          Build an Exception from target ModelDevice and a message.
 
Method Summary
 ModelDevice getDevice()
          Return the ModelDevice 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

DeviceConsistencyException

public DeviceConsistencyException(ModelDevice device,
                                  String message)
Build an Exception from target ModelDevice and a message.

Parameters:
device - The ModelDevice object of this exception.
message - The message printed by this exception.

DeviceConsistencyException

public DeviceConsistencyException(ModelDevice device)
Build an Exception from target ModelDevice.

Parameters:
device - The ModelDevice object of this exception.
Method Detail

getDevice

public ModelDevice getDevice()
Return the ModelDevice source of this Exception.

Returns:
The ModelDevice source of this Exception.


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