/** * For test purposes only. This isn't quite accurate, because I think two RVVs that have * effectively same exceptions may represent the exceptions differently. This method is testing * for an exact match of exception format. */ @Override public boolean sameAs(RVVException ex) { if (ex instanceof RVVExceptionT) { return ((RVVExceptionT) ex).sameAs(this); } if (!super.sameAs(ex)) { return false; } RVVExceptionB other = (RVVExceptionB) ex; if (this.received == null) { if (other.received != null && !other.received.isEmpty()) { return false; } } else if (!this.received.equals(other.received)) return false; return true; }