net.sourceforge.wurfl.core.resource.exc
Class UserAgentConsistencyException
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
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- UserAgentNotUniqueException, UserAgentOverrideException
public abstract class UserAgentConsistencyException
- extends DeviceConsistencyException
Generic User-Agent consistency exception.
- Version:
- $Id: UserAgentConsistencyException.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 |
UserAgentConsistencyException
public UserAgentConsistencyException(ModelDevice device,
String userAgent,
String message)
- Build UserAgentConsistencyException by device, userAgent and message.
- Parameters:
device - The device source of this exception.userAgent - The user-agent causes consistency exception.message - The message to display.
UserAgentConsistencyException
public UserAgentConsistencyException(ModelDevice device,
String userAgent)
- Build UserAgentConsistencyException by device and userAgent.
- Parameters:
device - The device source of this exception.userAgent - The user-agent causes consistency exception.
getUserAgent
public String getUserAgent()
- The inconsistent user-agent.
- Returns:
- User-Agent string causes this exception.
Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.