com.oopitis.weather
Class UnsupportedFeatureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.oopitis.weather.WeatherServiceException
                  extended by com.oopitis.weather.UnsupportedFeatureException
All Implemented Interfaces:
java.io.Serializable

public class UnsupportedFeatureException
extends WeatherServiceException

Thrown when a service operation cannot recognize a feature.

See Also:
Serialized Form

Constructor Summary
UnsupportedFeatureException(Feature f)
          Constructs an exception indicating a feature is not supported.
UnsupportedFeatureException(Feature f, java.lang.String message)
          Constructs an exception indicating a feature is not supported with a detailed message.
UnsupportedFeatureException(Feature f, java.lang.String message, java.lang.Throwable cause)
          Constructs an exception indicating a feature is not supported with a detailed message and cause.
UnsupportedFeatureException(Feature f, java.lang.Throwable cause)
          Constructs an exception indicating a feature is not supported with a cause.
 
Method Summary
 Feature getFeature()
          Returns the unsupported feature this exception is thrown for.
 
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

UnsupportedFeatureException

public UnsupportedFeatureException(Feature f)
Constructs an exception indicating a feature is not supported.

Parameters:
f - the feature that is not supported; null if the unsupported feature cannot be identified
See Also:
getFeature()

UnsupportedFeatureException

public UnsupportedFeatureException(Feature f,
                                   java.lang.String message)
Constructs an exception indicating a feature is not supported with a detailed message.

Parameters:
f - the feature that is not supported; null if the unsupported feature cannot be identified
message - the detailed message

UnsupportedFeatureException

public UnsupportedFeatureException(Feature f,
                                   java.lang.String message,
                                   java.lang.Throwable cause)
Constructs an exception indicating a feature is not supported with a detailed message and cause.

Parameters:
f - the feature that is not supported; null if the unsupported feature cannot be identified
message - the detailed message
cause - the cause; null if the cause is unknown

UnsupportedFeatureException

public UnsupportedFeatureException(Feature f,
                                   java.lang.Throwable cause)
Constructs an exception indicating a feature is not supported with a cause.

Parameters:
f - the feature that is not supported; null if the unsupported feature cannot be identified
cause - the cause; null if the cause is unknown
Method Detail

getFeature

public final Feature getFeature()
Returns the unsupported feature this exception is thrown for.

Returns:
the unsupported feature this exception is thrown for; null if unsupported feature cannot be identified