Anaphyaxis is not an allergic reaction. Swallow gasoline and you’ll likely go into anaphylactic shock - your body needs to have had no other experience with whatever substance you’re dealing with in order to have this reaction.
anaphylaxis is absolutely a immune reaction. IgE mediated usually. But nice try