implementazione di linked tree. manca il tostring

This commit is contained in:
2014-04-23 18:16:31 +02:00
parent b22cd894c1
commit 3607c918db
4 changed files with 188 additions and 32 deletions

View File

@@ -0,0 +1,18 @@
package exceptions;
/**
* Signals that the boundaries of a data structure have been illegally
* traversed (e.g. past the end of a list).
* @author Roberto Tamassia
*/
//Copyright (c) 2003 Brown University, Providence, RI
//Additional modifications and methods by xgiovio
public class NonEmptyTreeException extends RuntimeException {
public NonEmptyTreeException(String message) {
super (message);
}
public NonEmptyTreeException() {
super ("Tree already has a root");
}
}