net.sourceforge.openforecast.models
Class InsufficientDataException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sourceforge.openforecast.models.InsufficientDataException
All Implemented Interfaces:
Serializable

public class InsufficientDataException
extends Exception

Represents the case when there is insufficient data available to return a valid forecast value.

Since:
0.4
See Also:
Serialized Form

Constructor Summary
InsufficientDataException()
          Default constructor.
InsufficientDataException(String reason)
          Constructs a new InsufficientDataException with the given reason.
 
Method Summary
 
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

InsufficientDataException

public InsufficientDataException()
Default constructor. If possible, use the one argument constructor and give more information about the lack of data.


InsufficientDataException

public InsufficientDataException(String reason)
Constructs a new InsufficientDataException with the given reason. This is the preferred constructor.

Parameters:
reason - the reason for, or details about, the InsufficientDataException.


OpenForecast, Copyright (c) Steven Gould, 2002-2011