net.sourceforge.wurfl.core.resource
Class UserAgentNotUniqueException

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.UserAgentConsistencyException
                              extended by net.sourceforge.wurfl.core.resource.UserAgentNotUniqueException
All Implemented Interfaces:
Serializable

public class UserAgentNotUniqueException
extends UserAgentConsistencyException

User-Agent is not unique in model.

This exception is thrown when WURFL define two or more device with same user-agent

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

Constructor Summary
UserAgentNotUniqueException(ModelDevice device, String userAgent, ModelDevice definingDevice)
          Build exception by source device, user-agent and device defines the user-agent.
 
Method Summary
 ModelDevice getDefiningDevice()
          Returns the device defining the non-unique user-agent.
 
Methods inherited from class net.sourceforge.wurfl.core.resource.UserAgentConsistencyException
getUserAgent
 
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

UserAgentNotUniqueException

public UserAgentNotUniqueException(ModelDevice device,
                                   String userAgent,
                                   ModelDevice definingDevice)
Build exception by source device, user-agent and device defines the user-agent.

Parameters:
device - The source device.
userAgent - The non-unique user-agent.
definingDevice - The source defining device.
Method Detail

getDefiningDevice

public ModelDevice getDefiningDevice()
Returns the device defining the non-unique user-agent.

Returns:
Defining device id.


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