The following document contains the results of PMD's CPD 4.1.
File | Line |
---|---|
org\apache\commons\contract\util\MainWrapper.java | 59 |
org\apache\commons\contract\util\MainWrapper.java | 96 |
public static void printException(ContractViolationException exception) { System.out.println(exception.getErrorMessage().getTitle(Locale.getDefault())); System.out.print(exception.getErrorMessage().getDetails(Locale.getDefault())); Throwable throwable = (Throwable)exception; while ( throwable.getCause() != null ) { throwable = throwable.getCause(); if ( throwable instanceof LocalizedException ) { System.out.print(" "+((LocalizedException)throwable).getErrorMessage().getDetails(Locale.getDefault())); } else { System.out.print(" "+throwable.getMessage()); } } System.out.println(); |