Tabnine Logo
EcmaError.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.mozilla.javascript.EcmaError
constructor

Best Java code snippets using org.mozilla.javascript.EcmaError.<init> (Showing top 7 results out of 315)

origin: geogebra/geogebra

public static EcmaError constructError(String error,
                    String message,
                    String sourceName,
                    int lineNumber,
                    String lineSource,
                    int columnNumber)
{
  return new EcmaError(error, message, sourceName,
             lineNumber, lineSource, columnNumber);
}
origin: io.apigee/rhino

public static EcmaError constructError(String error,
                    String message,
                    String sourceName,
                    int lineNumber,
                    String lineSource,
                    int columnNumber)
{
  return new EcmaError(error, message, sourceName,
             lineNumber, lineSource, columnNumber);
}
origin: rhino/js

public static EcmaError constructError(String error,
                    String message,
                    String sourceName,
                    int lineNumber,
                    String lineSource,
                    int columnNumber)
{
  return new EcmaError(error, message, sourceName,
             lineNumber, lineSource, columnNumber);
}
origin: ro.isdc.wro4j/rhino

public static EcmaError constructError(String error,
                    String message,
                    String sourceName,
                    int lineNumber,
                    String lineSource,
                    int columnNumber)
{
  return new EcmaError(error, message, sourceName,
             lineNumber, lineSource, columnNumber);
}
origin: com.github.tntim96/rhino

public static EcmaError constructError(String error,
                    String message,
                    String sourceName,
                    int lineNumber,
                    String lineSource,
                    int columnNumber)
{
  return new EcmaError(error, message, sourceName,
             lineNumber, lineSource, columnNumber);
}
origin: com.sun.phobos/phobos-rhino

public static EcmaError constructError(String error,
                    String message,
                    String sourceName,
                    int lineNumber,
                    String lineSource,
                    int columnNumber)
{
  return new EcmaError(error, message, sourceName,
             lineNumber, lineSource, columnNumber);
}
origin: org.eclipse.dirigible/dirigible-engine-javascript-rhino

/**
 * Creates the module.
 *
 * @param module
 *            the module
 * @return the module source
 * @throws URISyntaxException
 *             the URI syntax exception
 */
private ModuleSource createModule(String module) throws URISyntaxException {
  byte[] sourceCode;
  ModuleSource moduleSource;
  try {
    sourceCode = executor.retrieveModule(root, module).getContent();
  } catch (RepositoryNotFoundException e) {
    throw new EcmaError(null, module, 0, 0, e.getMessage());
  }
  moduleSource = new ModuleSource(new InputStreamReader(new ByteArrayInputStream(sourceCode), StandardCharsets.UTF_8), null, new URI(module),
      null, null);
  return moduleSource;
}
org.mozilla.javascriptEcmaError<init>

Javadoc

Create an exception with the specified detail message. Errors internal to the JavaScript engine will simply throw a RuntimeException.

Popular methods of EcmaError

  • lineNumber
  • sourceName
  • columnNumber
  • getErrorMessage
    Gets the message corresponding to the error. See ECMA edition 3, 15.11.7.10.
  • getName
    Gets the name of the error. ECMA edition 3 defines the following errors: EvalError, RangeError, Refe
  • lineSource
  • recordErrorOrigin
  • getMessage
  • details
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now