Package org.bladerunnerjs.model.exception.request

Examples of org.bladerunnerjs.model.exception.request.ContentFileProcessingException


        }
      }
      catch (XMLStreamException e) {
        Location location = e.getLocation();
       
        throw new ContentFileProcessingException(aliasDefinitionsFile, location.getLineNumber(), location.getColumnNumber(), e);
      }
      catch (IOException | NamespaceException | RequirePathException | AliasException e) {
        throw new ContentFileProcessingException(aliasDefinitionsFile, e);
      }
    }
   
    return data;
  }
View Full Code Here


        String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), jsLib.dir(), imageFile);
       
        targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.LIB_REQUEST, jsLib.getName(), resourcePath);
      }
      else {
        throw new ContentFileProcessingException(imageFile, "File does not exist in a known scope");
      }
    }
    catch(MalformedTokenException e) {
      throw new ContentProcessingException(e);
    }
View Full Code Here

  public void writeData() throws ContentFileProcessingException {
    try {
      AliasesWriter.write(getData(), aliasesFile, getCharacterEncoding());
    }
    catch(Exception e) {
      throw new ContentFileProcessingException(e, aliasesFile);
    }
  }
View Full Code Here

        }
      }
      catch (XMLStreamException e) {
        Location location = e.getLocation();
       
        throw new ContentFileProcessingException(aliasesFile, location.getLineNumber(), location.getColumnNumber(), e);
      }
      catch (IOException | AliasException e) {
        throw new ContentFileProcessingException(aliasesFile, e);
      }
    }
   
    return aliasesData;
  }
View Full Code Here

          aliasDefinition = nextAliasDefinition;
        }
      }
    }
    catch(AmbiguousAliasException e) {
      throw new ContentFileProcessingException(aliasDefinitionsFile, e);
    }
   
    return aliasDefinition;
  }
View Full Code Here

       
        Map<String, XmlResourceConfig> configMap = xmlBundlerConfig.getConfigMap();
        if (!configMap.containsKey(rootElement))
        {
          siblingReader.close();
          throw new ContentFileProcessingException(document, "Document contain unsupported root element: '" + rootElement + "'");
        }
        else
        {
          if (!resourceReaders.containsKey(rootElement))
          {
            resourceReaders.put(rootElement, new ArrayList<XmlSiblingReader>());
          }
         
          List<XmlSiblingReader> readerSet = resourceReaders.get(rootElement);
          readerSet.add(siblingReader);
        }
       
      }catch XMLStreamException | IOException e){
        throw new ContentFileProcessingException(document, e);
      }
    }
   
    return resourceReaders;
  }
View Full Code Here

  {
    String identifier;
    try {
      identifier = getIdentifier(identifierAttribute, reader);
    } catch (NamespaceException e) {
      throw new ContentFileProcessingException(reader.getXmlDocument(), e);
    }
     
    if(identifier != null)
    {
      File fileWithTheSameIdForTheMergeElement = processedIdentifers.get(identifier);
View Full Code Here

          {
            childReaders.add(childReader);
          }
        }
      }catch(XMLStreamException | XmlSiblingReaderException e){
        throw new ContentFileProcessingException(reader.getXmlDocument(), e);
      }
    }

    return childReaders;
  }
View Full Code Here

  public void writeData() throws ContentFileProcessingException {
    try {
      AliasDefinitionsWriter.write(getData(), aliasesFile, getCharacterEncoding());
    }
    catch(Exception e) {
      throw new ContentFileProcessingException(e, aliasesFile);
    }
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.exception.request.ContentFileProcessingException

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.