Problems with inheritance

0

I have two Java classes in the same package:

package br.edu.ufam.icomp.lab_excecoes;
import java.io.*;

public class RoverException extends Exception {

   private static final long serialVersionUID = 1L;

   public RoverException() {
       this("Exceção geral do rover");
   }

   public RoverException(String s) {
       super(s);
   }
}

and

package br.edu.ufam.icomp.lab_excecoes;

public class RoverCoordenadaException extends RoverException{

   private static final long serialVersionUID = 1L;

   public RoverCoordenadaException(){
       this("Exceção geral de coordenada do rover");
   }

   public RoverCoordenadaException(String s){
       super(s);
   }
}

The class RoverException compiles normally, but when compiling the class RoverCoordenadaException the compiler presents the error:

cannot find symbol 
public class RoverCoordenadaException extends RoverException{
                                              ^
symbol: class RoverException
1 error
    
asked by anonymous 22.09.2018 / 22:52

0 answers