Adding the missing constructor in exception class

Adding the missing constructor in exception class