@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
@Test(groups = "unit") public void should_create_proper_trace_retrieval_exception() { TraceRetrievalException e = new TraceRetrievalException("Couldn't find any trace of it"); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); e = (TraceRetrievalException) e.copy(); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); }
throw new TraceRetrievalException("Unexpected exception while fetching query trace", e); throw new TraceRetrievalException( String.format( "Unable to retrieve complete query trace for id %s after %d tries",
throw new TraceRetrievalException("Unexpected exception while fetching query trace", e); throw new TraceRetrievalException(String.format("Unable to retrieve complete query trace after %d tries", MAX_TRIES));
@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
@Test(groups = "unit") public void should_create_proper_trace_retrieval_exception() { TraceRetrievalException e = new TraceRetrievalException("Couldn't find any trace of it"); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); e = (TraceRetrievalException) e.copy(); assertThat(e.getMessage()).isEqualTo("Couldn't find any trace of it"); }
throw new TraceRetrievalException("Unexpected exception while fetching query trace", e); throw new TraceRetrievalException(String.format("Unable to retrieve complete query trace for id %s after %d tries", traceId, MAX_TRIES));
@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
throw new TraceRetrievalException("Unexpected exception while fetching query trace", e); throw new TraceRetrievalException(String.format("Unable to retrieve complete query trace for id %s after %d tries", traceId, MAX_TRIES));
@Override public TraceRetrievalException copy() { return new TraceRetrievalException(getMessage(), this); } }
throw new TraceRetrievalException("Unexpected exception while fetching query trace", e); throw new TraceRetrievalException(String.format("Unable to retrieve complete query trace for id %s after %d tries", traceId, MAX_TRIES));
@Override public DriverException copy() { return new TraceRetrievalException(getMessage(), this); } }