Package com.kolich.havalo.exceptions.repositories

Examples of com.kolich.havalo.exceptions.repositories.RepositoryLoadException


    try {
      is = getInputStream(ownerId.toString());
      reader = new InputStreamReader(is, UTF_8);
      return getHavaloGsonInstance().fromJson(reader, Repository.class);
    } catch (UnsupportedEncodingException e) {
      throw new RepositoryLoadException("Failed to load repository " +
        "by ID: " + ownerId.toString(), e);
    } finally {
      closeQuietly(reader);
      closeQuietly(is);
    }
View Full Code Here


      // e.getCause().  Not a big deal, just a detail to be aware of.
      final Throwable cause = e.getCause();
      if(cause instanceof RepositoryNotFoundException) {
        throw (RepositoryNotFoundException)cause;
      } else {
        throw new RepositoryLoadException("Failed to load " +
          "repository: " + id, e);
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.kolich.havalo.exceptions.repositories.RepositoryLoadException

Copyright © 2018 www.massapicom. 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.