Exceptions — agate 1.6.3 documentation

# Exceptions

`agate.DataTypeError` | A calculation was attempted with an invalid `DataType`.
`agate.UnsupportedAggregationError` | An `Aggregation` was attempted which is not supported.
`agate.CastError` | A column value can not be cast to the correct type.
`agate.FieldSizeLimitError` | A field in a CSV file exceeds the maximum length.

exception agate.DataTypeError

  A calculation was attempted with an invalid `DataType`.

exception agate.UnsupportedAggregationError

  An `Aggregation` was attempted which is not supported.

  For example, if a `Percentiles` is applied to a `TableSet`.

exception agate.CastError

  A column value can not be cast to the correct type.

exception agate.FieldSizeLimitError(limit, line_number)

  A field in a CSV file exceeds the maximum length.

  This length may be the default or one set by the user.