/** * Returns the exception name, message, and related information * together in one string. * * <p> * Overriding this method (instead of {@link #printStackTrace} allows * this crucial detail to show up even when this exception is nested * inside other exceptions. */ public String toString() { StringBuilder sb = new StringBuilder(getMessage()); for( List<Location> locs : pos ) { sb.append("\n\tthis problem is related to the following location:"); for( Location loc : locs ) sb.append("\n\t\tat ").append(loc.toString()); } return sb.toString(); } }
/** * Returns the exception name, message, and related information * together in one string. * * <p> * Overriding this method (instead of {@link #printStackTrace} allows * this crucial detail to show up even when this exception is nested * inside other exceptions. */ public String toString() { StringBuilder sb = new StringBuilder(getMessage()); for( List<Location> locs : pos ) { sb.append("\n\tthis problem is related to the following location:"); for( Location loc : locs ) sb.append("\n\t\tat ").append(loc.toString()); } return sb.toString(); } }
/** * Returns the exception name, message, and related information * together in one string. * * <p> * Overriding this method (instead of {@link #printStackTrace} allows * this crucial detail to show up even when this exception is nested * inside other exceptions. */ public String toString() { StringBuilder sb = new StringBuilder(getMessage()); for( List<Location> locs : pos ) { sb.append("\n\tthis problem is related to the following location:"); for( Location loc : locs ) sb.append("\n\t\tat ").append(loc.toString()); } return sb.toString(); } }
/** * Returns the exception name, message, and related information * together in one string. * * <p> * Overriding this method (instead of {@link #printStackTrace} allows * this crucial detail to show up even when this exception is nested * inside other exceptions. */ public String toString() { StringBuilder sb = new StringBuilder(getMessage()); for( List<Location> locs : pos ) { sb.append("\n\tthis problem is related to the following location:"); for( Location loc : locs ) sb.append("\n\t\tat ").append(loc.toString()); } return sb.toString(); } }
/** * Returns the exception name, message, and related information * together in one string. * * <p> * Overriding this method (instead of {@link #printStackTrace} allows * this crucial detail to show up even when this exception is nested * inside other exceptions. */ public String toString() { StringBuilder sb = new StringBuilder(getMessage()); for( List<Location> locs : pos ) { sb.append("\n\tthis problem is related to the following location:"); for( Location loc : locs ) sb.append("\n\t\tat ").append(loc.toString()); } return sb.toString(); } }
/** * Returns the exception name, message, and related information * together in one string. * * <p> * Overriding this method (instead of {@link #printStackTrace} allows * this crucial detail to show up even when this exception is nested * inside other exceptions. */ public String toString() { StringBuilder sb = new StringBuilder(getMessage()); for( List<Location> locs : pos ) { sb.append("\n\tthis problem is related to the following location:"); for( Location loc : locs ) sb.append("\n\t\tat ").append(loc.toString()); } return sb.toString(); } }