Package com.netfever.common.exceptions

Examples of com.netfever.common.exceptions.FaultDetails


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


   
  @Override
  public Status onFileNotExists(File f) throws StorageServletException
  {
    throw new StorageServletException(
        new FaultDetails(
            null,
            -1,
            "The file at location '" + f.getAbsolutePath() + "' does not exists.",
            null,
            null));
View Full Code Here

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

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

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

{
  @Override
  public Status onFileNotExists(File f) throws StorageServletException
  {
    throw new StorageServletException(
        new FaultDetails(
            null,
            -1,
            "The file at location '" + f.getAbsolutePath() + "' does not exists.",
            null,
            null));
View Full Code Here

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

        }

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

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

  public static void checkFileExists(final File f) throws NetfeverException {
    final UUID uuid = UUID.randomUUID();
   
    if (!f.exists()) {
      throw new NetfeverException(
          new FaultDetails(
            uuid.toString(),
            0,
            "The file does not exists. Contact administrator with error: " + uuid,
            "The file at location " + f.getAbsolutePath() + " does not exists.",
            null
          ));     
    }

    if (!f.isFile()) {
      throw new NetfeverException(
          new FaultDetails(
            uuid.toString(),
            0,
            "The file does not exists. Contact administrator with error: " + uuid,
            "The path location " + f.getAbsolutePath() + " is a folder not a file.",
            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.