1 6 7 package de.schlichtherle.io; 8 9 import java.io.FileNotFoundException ; 10 11 20 public class ContainsFileException extends FileNotFoundException { 21 22 private final java.io.File ancestor, descendant; 23 24 27 public ContainsFileException( 28 final java.io.File ancestor, 29 final java.io.File descendant) { 30 super("Paths refer to the same file or contain each other!"); 31 this.ancestor = ancestor; 32 this.descendant = descendant; 33 } 34 35 public java.io.File getAncestor() { 36 return ancestor; 37 } 38 39 public java.io.File getDescendant() { 40 return descendant; 41 } 42 } 43 | Popular Tags |