1 /** 2 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved. 3 */ 4 package com.tc.util.exception; 5 6 /** 7 * An object that knows how to compare two exceptions for equality. 8 */ 9 public interface ExceptionEqualityComparator { 10 11 /** 12 * Indicates whether two exceptions are equal. Note that one or both of the exceptions may be <code>null</code>; a 13 * <code>null</code> exception object should never be considered equal to any other exception object, except for a 14 * <code>null</code> exception object. 15 */ 16 boolean exceptionsEqual(Throwable exceptionOne, Throwable exceptionTwo); 17 18 } 19