Package com.netfever.common.exceptions

Examples of com.netfever.common.exceptions.FaultDetails


      throw new StorageException(e.getDetails(), e);
    } catch (IOException e) {
      UUID uuid = UUID.randomUUID();
     
      throw new StorageException(
          new FaultDetails(
              uuid.toString(),
              0,
              "Streaming error. Contact administrator with id " + uuid,
              "Error reading stream " +
              file.getAbsoluteName() +
View Full Code Here


      throw new StorageException(e.getDetails(), e);
    } catch (IOException e) {
      UUID uuid = UUID.randomUUID();
     
      throw new StorageException(
          new FaultDetails(
              uuid.toString(),
              0,
              "Streaming error. Contact administrator with id " + uuid,
              "Error reading stream " +
              webStream.getAbsoluteName() +
View Full Code Here

   
    try {     
      return new FileInputStream(getInternalFile());
    } catch (IOException e) {
      throw new NetfeverException(
          new FaultDetails(
              null,
              0,
              e.getMessage(),
              "Fail to open file " +
              getInternalFile().getAbsolutePath() +
View Full Code Here

  public OutputStream openWrite() throws NetfeverException  {
    try {
      return new FileOutputStream(getInternalFile());
    } catch (IOException e) {
      throw new NetfeverException(
          new FaultDetails(
              null,
              0,
              e.getMessage(),
              "Fail to open file " +
              getInternalFile().getAbsolutePath() +
View Full Code Here

      return res.toArray(new IFile[0]);
    } catch (NetfeverException e) {
      throw new StorageServletException(e.getDetails());
    } catch (Exception e) {
      throw new StorageServletException(
          new FaultDetails(
              null,
              -1,
              e.getMessage(),
              null,
              null));
View Full Code Here

      }
    } catch (StorageServletException e) {
      throw e;
    } catch (Exception e) {
      throw new StorageServletException(
          new FaultDetails(
              null,
              -1,
              e.getMessage(),
              null,
              null));
View Full Code Here

    try {
      IPath res = Configuration.getSystemRoot().getRoot().getFolderItem(relativeUrl);
      return res;
    } catch (NetfeverException e) {
      throw new StorageServletException(
          new FaultDetails(
              null,
              -1,
              e.getMessage(),
              null,
              null));
View Full Code Here

        storagelist.add(storages.get(keys.next()));

      return storagelist;     
    } catch (NetfeverException e) {
      throw new StorageServletException(
          new FaultDetails(
              null,
              -1,
              e.getMessage(),
              null,
              null));
View Full Code Here

        in.close();
      }
      return storage;
    } catch (Exception e) {
      throw new NetfeverException(
          new FaultDetails(
              null,
              -1,
              e.getMessage(),
              null,
              null));
View Full Code Here

TOP

Related Classes of com.netfever.common.exceptions.FaultDetails

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.