return a Zencoder.Error struct if an exception happens