def costOfEquity(self):
        """ Compute cost of equity using DVM Model """
        
        try:
            #Test for negative numbers input and raise the exception
            self._negativeNumberException(self.dividend_just_paid,self.share_price)        
            return "%2.1f" % ((((self.dividend_just_paid*
                    (1+float(self.g_gordonsModel)))/(self.share_price))+ float(self.g_gordonsModel))*100 )

        #Raise TypeError if input is not numerical
        except TypeError:
            print "\n<The entered value is not a number"

        #division by zero raises ZeroDivisionError exception        
        except ZeroDivisionError:
            raise ZeroDivisionError, "\n<Please check and re-enter the values"
 Compute cost of equity using DVM Model 
recipes/Python/576708_DVMVersusCAPM/recipe-576708.py