1 21 package au.id.jericho.lib.html; 22 23 import java.io.*; 24 import java.util.*; 25 26 35 public class OverlappingOutputSegmentsException extends RuntimeException { 36 private OutputSegment[] overlappingOutputSegments=new OutputSegment[2]; 37 38 OverlappingOutputSegmentsException(final OutputSegment outputSegment1, final OutputSegment outputSegment2) { 39 super("Overlapping output segments detected in output document:\n"+outputSegment1.getDebugInfo()+'\n'+outputSegment2.getDebugInfo()); 40 overlappingOutputSegments[0]=outputSegment1; 41 overlappingOutputSegments[1]=outputSegment2; 42 } 43 44 52 public OutputSegment[] getOverlappingOutputSegments() { 53 return overlappingOutputSegments; 54 } 55 } 56 57 | Popular Tags |