weather_service.weatherprovider
Class WeatherError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by weather_service.weatherprovider.WeatherError
All Implemented Interfaces:
java.io.Serializable

public class WeatherError
extends java.lang.Exception

WeatherError is an exception class that reports the following:

  1. parsing problems with the xml data returned from weather.com
  2. error conditions reported by weather.com

Since:
Jan 1, 2007, 5:48:16 PM
See Also:
Serialized Form

Nested Class Summary
static class WeatherError.ErrorTypes
           
 
Constructor Summary
WeatherError(java.lang.String errorType, java.lang.String errorValue)
           
WeatherError(WeatherError.ErrorTypes type, java.lang.String msg)
           
WeatherError(WeatherError.ErrorTypes type, java.lang.Throwable t)
           
WeatherError(WeatherError.ErrorTypes type, java.lang.Throwable t, java.lang.String msg)
           
 
Method Summary
 WeatherError.ErrorTypes getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeatherError

public WeatherError(WeatherError.ErrorTypes type,
                    java.lang.String msg)

WeatherError

public WeatherError(WeatherError.ErrorTypes type,
                    java.lang.Throwable t)

WeatherError

public WeatherError(WeatherError.ErrorTypes type,
                    java.lang.Throwable t,
                    java.lang.String msg)

WeatherError

public WeatherError(java.lang.String errorType,
                    java.lang.String errorValue)
Method Detail

getType

public WeatherError.ErrorTypes getType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable