net.degreedays.api.data
Class DataTransformException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.degreedays.api.DegreeDaysApiException
                  extended by net.degreedays.api.data.DataTransformException
All Implemented Interfaces:
java.io.Serializable

public final class DataTransformException
extends DegreeDaysApiException

Indicates that this client library could not transform a set of data into one with a different breakdown.

This is part of the mechanism by which this client library can transform data into different breakdowns. These transformations are done locally, rather than going through the API servers.

Generally it only makes sense to attempt to transform daily data into data with a different Breakdown. Provided it covers the required period in time, daily data can be summed into weekly, monthly, yearly, or average data. If a transformation is not possible, this exception will result.

To transform data locally, use DatedDataSet.transformToDated(net.degreedays.api.data.DatedBreakdown) and DatedDataSet.transformToAverage(net.degreedays.api.data.AverageBreakdown).


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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 



www.degreedays.net/api/