This module contains various exceptions raised by agate.

exception agate.exceptions.NullCalculationError

Exception raised if a calculation which can not logically account for null values is attempted on a Column containing nulls.

exception agate.exceptions.DataTypeError

Exception raised if a process, such as an Aggregation, is attempted with an invalid data type.

exception agate.exceptions.UnsupportedAggregationError

Exception raised if an aggregation is attempted which is not supported. For example if a Percentiles is used on a TableSet.

exception agate.exceptions.CastError

Exception raised when a column value can not be cast to the correct type.

exception agate.exceptions.ColumnDoesNotExistError(k)

Exception raised when trying to access a column that does not exist.

Parameters:k – The key used to access the non-existent Column.
exception agate.exceptions.RowDoesNotExistError(i)

Exception raised when trying to access a row that does not exist.

Parameters:i – The index used to access the non-existent Row.