try catch product controller