27 lines
458 B
Java
27 lines
458 B
Java
package maze;
|
|
|
|
/**<h1> MazeReadingException exception </h1>
|
|
* <p>
|
|
* This class is used to throw exception when reading and initiating the maze from a text file.
|
|
*
|
|
*
|
|
*/
|
|
|
|
public class MazeReadingException
|
|
extends Exception {
|
|
|
|
private String filename ;
|
|
|
|
public MazeReadingException (String filename) {
|
|
|
|
super("Invalid maze format : " + filename) ;
|
|
this.filename = filename ;
|
|
|
|
}
|
|
|
|
public String getFilename() {
|
|
return filename ;
|
|
}
|
|
|
|
}
|