Custom exception class made, operand type exception caught and handled