In one class I do:
public void setLeft(int left) throws BadException
{
if (left < 0 || left > 639)
throw new BadException();
else
x1 = left;
}

then in another class I do:

public static void main(String args[])
{
try
{
l1.setLeft(3000);
}
catch (BadException ex)
{
System.out.println("error message");
ex.printStackTrace();
}
}


I keep getting a cannot find symbol
symbol : class BadException
location: class Line
public void setLeft(int left) throws BadException
^

I can't figure it out.. What am I doing wrong???