How to make python exception handing for my app?
<p>I have finished a simple application to calculate the BMI, however, I need to create a couple of exception handlings in an another file, such like exceptions.py </p>

<p>These exceptions are: empty value exception, integer value exception, and email format exception. </p>

<p>Can anyone show me how to make these exception handlings in another file?</p>

<pre><code>from tkinter import *
from tkinter import ttk
from tkinter import messagebox
from exceptions import exceptions
import math , decimal

class BMI_Caclulator:

    def __init__(self,master):
        master.title = ('BMI Calculator')
        [distracting UI construction code omitted]

    def calculate(self):
        print('Name: {}'.format(self.entry_name.get()))
        print('Email: {}'.format(self.entry_email.get()))
        print('Age: {}'.format(self.age.get()))
        print('Gender: {}'.format(self.gender.get()))
        print('Weight: {}'.format(self.entry_weight.get()))
        print('Height: {}'.format(self.entry_ft.get())+ ' feets ' + format(self.entry_in.get())+ ' inchs' )
        print('BMI:' + str(self.calculate_BMI()))
        print('Comments: {}'.format(self.text_comments.get(1.0, 'end')))

        self.clear()
        messagebox.showinfo(title = 'BMI Calculator', message = 'Your information was successfully Submitted!')

    def clear(self):
        self.entry_name.delete(0, 'end')
        self.entry_email.delete(0, 'end')
        self.text_comments.delete(1.0, 'end')


    def calculate_BMI(self):
        self.inchs = int(self.entry_ft.get())* 12 + int(self.entry_in.get())
        self.BMI = int(self.entry_weight.get())* 703 /math.pow(self.inchs,2)
        return  self.BMI
</code></pre>