Updated Custom Exception to comply with standards.