Brief Answer:
Its considered a burning type pain
Detailed Answer:
Hi,
Yes, heart burn can be considered a burning type of pain, though actual pain of ulcer is gnawing type of pain. Mild heartburns are not a cause of concern. Difference in conditions is based on clinical presentation and other symptoms (not just pain).
Hope this answers your doubt. Let me know if I can assist you further.
Dr. Vaishalee