added scope to AvroError to avoid throwing exception when attempting to throw exception in 2.*