Defined a missing Error type, AggregateDefinitionError.