exception throwing added
Added exception messages