Source
In my opinion, what you did was so unreasonable.......She is your boss and she deserves to be respected, she has also been very good with you, teaching you and bearing all your plenty excesses.
If you feel she didn't speak to you appropriately, then you would have approached her respectfully.