net.sourceforge.wurfl.core.resource.exc
Class UserAgentNotUniqueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sourceforge.wurfl.core.exc.WURFLRuntimeException
net.sourceforge.wurfl.core.resource.exc.WURFLConsistencyException
net.sourceforge.wurfl.core.resource.exc.DeviceConsistencyException
net.sourceforge.wurfl.core.resource.exc.UserAgentConsistencyException
net.sourceforge.wurfl.core.resource.exc.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 934 2012-03-27 13:34:26Z fulvio.crivellaro $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
getDefiningDevice
public ModelDevice getDefiningDevice()
- Returns the device defining the non-unique user-agent.
- Returns:
- Defining device id.
Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.