Examples of ImageNotFoundException


Examples of com.extentech.formats.XLS.ImageNotFoundException

            return r[x];
      }catch(Exception ex) {
        ;
      }
    }
    throw new ImageNotFoundException("Image not found: " + imagename + " in " + this.toString());
  }
View Full Code Here

Examples of com.harrison.lee.twitpic4j.exception.ImageNotFoundException

   * @throws TwitPicException
   */
  private void handleErrorMessage(int code) throws TwitPicException {
    switch(code){
    case TwitPicException.ERROR_IMAGE_NOT_FOUND:
      throw new ImageNotFoundException();
    case TwitPicException.ERROR_IMAGE_TOO_LARGE:
      throw new ImageTooLargeException();
    case TwitPicException.ERROR_INVALID_IMAGE_TYPE:
      throw new InvalidImageTypeException();
    case TwitPicException.ERROR_INVALID_USER_OR_PASS:
View Full Code Here

Examples of com.spotify.docker.client.ImageNotFoundException

  @Test
  public void testPullTimeoutVariation() throws Throwable {
    doThrow(new DockerTimeoutException("x", new URI("http://example.com"), null))
        .when(mockDocker).pull(IMAGE);

    doThrow(new ImageNotFoundException("not found"))
        .when(mockDocker).inspectImage(IMAGE);

    final TaskRunner tr = TaskRunner.builder()
        .delayMillis(0)
        .config(TaskConfig.builder()
View Full Code Here

Examples of com.spotify.docker.client.ImageNotFoundException

    verify(statusUpdater).update();
  }

  @Test
  public void verifyMonitorPropagatesImageMissing() throws Exception {
    sut.failed(new ImageNotFoundException("foobar", "not found"));
    verify(statusUpdater).setThrottleState(IMAGE_MISSING);
    verify(statusUpdater).setState(FAILED);
    verify(statusUpdater).update();
  }
View Full Code Here

Examples of com.spotify.docker.client.ImageNotFoundException

  }

  @Test
  public void verifyImageMissingTrumpsFlappingState() throws Exception {
    when(flapController.isFlapping()).thenReturn(true);
    sut.failed(new ImageNotFoundException("foobar", "not found"));
    verify(statusUpdater).setThrottleState(IMAGE_MISSING);
    verify(statusUpdater).setState(FAILED);
    verify(statusUpdater).update();
  }
View Full Code Here

Examples of org.mifosplatform.portfolio.client.exception.ImageNotFoundException

            final ImageData imageData = this.jdbcTemplate.queryForObject(sql, imageMapper, new Object[] { clientId });
            final ContentRepository contentRepository = this.contentRepositoryFactory.getRepository(imageData.storageType());
            final ImageData result = contentRepository.fetchImage(imageData);

            if (result.getContent() == null) { throw new ImageNotFoundException("clients", clientId); }

            return result;
        } catch (final EmptyResultDataAccessException e) {
            throw new ImageNotFoundException("clients", clientId);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.