net.sourceforge.wurfl.core
Class CapabilityNotDefinedException

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.CapabilityNotDefinedException
All Implemented Interfaces:
Serializable

public class CapabilityNotDefinedException
extends WURFLRuntimeException

The capability x is not defined in WURFL.

This is a Exception thrown if the requested capability is not defined in WURFL. Generally it mean the capability name is not right. THis Exception is unchecked because it is a unrecoverable exception for the client.

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

Constructor Summary
CapabilityNotDefinedException(String capabilityName)
          Build a CapabilityNotDefinedException by the name of capability not defined.
CapabilityNotDefinedException(String capabilityName, String message)
          Build a CapabilityNotDefinedException by the name of capability not defined.
 
Method Summary
 String getCapabilityName()
          Return the not defined capability name.
 
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

CapabilityNotDefinedException

public CapabilityNotDefinedException(String capabilityName)
Build a CapabilityNotDefinedException by the name of capability not defined.

Parameters:
capabilityName - The name of capability not defined.

CapabilityNotDefinedException

public CapabilityNotDefinedException(String capabilityName,
                                     String message)
Build a CapabilityNotDefinedException by the name of capability not defined.

Parameters:
capabilityName - The name of capability not defined.
message - The message to display.
Method Detail

getCapabilityName

public String getCapabilityName()
Return the not defined capability name.

Returns:
a string containing the capability name not defined.


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