adding new constructor to exception