Package org.bladerunnerjs.model.exception.request

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


    catch (CssImageReferenceException cssImageReferenceException) {
      cssImageReferenceException.setCssFileContainingImageReference(cssAsset.getAssetPath());
      throw cssImageReferenceException;
    }
    catch (Exception e) {
      throw new ContentProcessingException(e, "Error while bundling asset '" + cssAsset.getAssetPath() + "'.");
    }
  }
View Full Code Here


  private String getCanonicalPath(String imagePath) throws ContentProcessingException {
    try {
      return new File(imagePath).getCanonicalPath();
    }
    catch (IOException e) {
      throw new ContentProcessingException("referenced image ('" + imagePath + "') does not exist.");
    }
  }
View Full Code Here

        }
      }
    }
    catch (MalformedTokenException e)
    {
      throw new ContentProcessingException(e);
    }

    return requestPaths;
  }
View Full Code Here

        }
        return new CharResponseContent( brjs, readerList );
      }
      else
      {
        throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
      }
    }
    catch IOException | RequirePathException e)
    {
      throw new ContentProcessingException(e);
    }
  }
View Full Code Here

  {
    try {
      return getGeneratedRequests(true, tagAttributes, bundleSet, locale, version);
    }
    catch(IOException e) {
      throw new ContentProcessingException(e);
    }
  }
View Full Code Here

  {
    try {
      return getGeneratedRequests(false, tagAttributes, bundleSet, locale, version);
    }
    catch(IOException e) {
      throw new ContentProcessingException(e);
    }
  }
View Full Code Here

        }
        requestPaths.add(contentPathParser.createRequest(GLOBALIZE_EXTRA_CLASSES_REQUEST));
      }
      catch (MalformedTokenException e)
      {
        throw new ContentProcessingException(e);
      }
    }

    return requestPaths;
  }
View Full Code Here

        List<SourceModule> processedGlobalizedSourceModules = new ArrayList<SourceModule>();
        return new CharResponseContent(brjs, getGlobalizedClassesContent(bundleSet, processedGlobalizedSourceModules));
      }
      else
      {
        throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
      }
    }
    catch ( IOException | RequirePathException e)
    {
      throw new ContentProcessingException(e);
    }
  }
View Full Code Here

          String aliasData = AliasingSerializer.createJson(bundleSet);
          return new CharResponseContent( brjs, "define('$alias-data', function(require, exports, module) {\n\tmodule.exports = " + aliasData + ";\n});\n" );
        }
      }
      else {
        throw new ContentProcessingException("unknown request form '" + contentPath.formName + "'.");
      }
    }
    catch (RequirePathException e) {
      // do nothing: if 'br/AliasRegistry' doesn't exist then we definitely need to configure it
    }
View Full Code Here

    List<String> requestPaths = new ArrayList<>();
   
    try {
      requestPaths.add(contentPathParser.createRequest("aliasing-request"));
    } catch (MalformedTokenException e) {
      throw new ContentProcessingException(e);
    }
    return requestPaths;
  }
View Full Code Here

TOP

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

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.