/** * Return true if this ServiceException or any of its sibling exceptions * matches the specified {@link ErrorContent} in domain name and code name. * If you want to know <i>which</i> particular ServiceException matched, call * {@link #getSiblings} and examine the individual ServiceExceptions with * {@link #matches}. */ public boolean matchesAny(ErrorContent errorCode) { for (ServiceException se : siblings) { if (se.matches(errorCode)) { return true; } } return false; }
/** * Return true if this ServiceException or any of its sibling exceptions * matches the specified {@link ErrorContent} in domain name and code name. * If you want to know <i>which</i> particular ServiceException matched, call * {@link #getSiblings} and examine the individual ServiceExceptions with * {@link #matches}. */ public boolean matchesAny(ErrorContent errorCode) { for (ServiceException se : siblings) { if (se.matches(errorCode)) { return true; } } return false; }
/** * Return true if this ServiceException or any of its sibling exceptions * matches the specified {@link ErrorContent} in domain name and code name. * If you want to know <i>which</i> particular ServiceException matched, call * {@link #getSiblings} and examine the individual ServiceExceptions with * {@link #matches}. */ public boolean matchesAny(ErrorContent errorCode) { for (ServiceException se : siblings) { if (se.matches(errorCode)) { return true; } } return false; } }