Make sure you also have the can class imported. Either of the following will work:
Code:
import edu.wpi.first.wpilibj.can.CANTimeoutException;
//or
import edu.wpi.first.wpilibj.can.*;
A nifty shortcut is ctrl+shift+i which is fix imports. It is the first thing I try when I see a red line and I know the syntax is right.