main: Added function which throw exception.