Package com.opera.core.systems.scope.exceptions

Examples of com.opera.core.systems.scope.exceptions.ScopeException


    }

    Response response = executeMessage(EcmascriptMessage.EVAL, evalBuilder);

    if (response == null) {
      throw new ScopeException("Internal error while executing script");
    }

    EvalResult result = parseEvalData(response);

    Object parsed = parseEvalReply(result);
View Full Code Here


    switch (status) {
      case CANCELLED:
        return null;
      case EXCEPTION:
        throw new ScopeException("EcmaScript exception");
      case NO_MEMORY:
        //releaseObjects();
        throw new ScopeException("Out of memory");
      case FAILURE:
        throw new ScopeException("Could not execute script");
    }

    Value value = result.getValue();
    Type type = value.getType();
View Full Code Here

    openUrlBuilder.setUrl(url);

    Response response = executeMessage(WindowManagerMessage.OPEN_URL, openUrlBuilder);

    if (response == null) {
      throw new ScopeException("Internal error while opening " + url);
    }
  }
View Full Code Here

            return !windows.containsKey(windowId);
          }
        });

    if (response == null) {
      throw new ScopeException("Internal error while closing window");
    }
  }
View Full Code Here

    }

    Response response = executeMessage(EcmascriptDebuggerMessage.EVAL, evalBuilder);

    if (response == null) {
      throw new ScopeException("Internal error while executing script");
    }

    EvalResult result = parseEvalData(response);

    Object parsed = parseEvalReply(result);
View Full Code Here

              (String) callFunctionOnObject("return locator.name+': '+locator.message;", result
                  .getObjectValue().getObjectID(), true);
        } catch (Exception e) {
          // If we get an exception while trying to get the message just throw
          // a generic Ecmascript exception.
          throw new ScopeException("Ecmascript exception");
        }
        // Throw the ecmascript exception
        throw new ScopeException("Ecmascript exception:\n" + message);
      }
      // TODO: What is the best approach here?
      else if (status.equals("cancelled-by-scheduler")) {
        return null;
      }
View Full Code Here

    }

    // type.setSpace("preserve");
    builder.addActionList(actionBuilder);
    if (executeMessage(ExecMessage.EXEC, builder) == null) {
      throw new ScopeException("Unexpected error while calling action: " + using);
    }
  }
View Full Code Here

    actionBuilder.setStringParam(dataStringParam);

    // type.setSpace("preserve");
    builder.addActionList(actionBuilder);
    if (executeMessage(ExecMessage.EXEC, builder) == null) {
      throw new ScopeException("Unexpected error while calling action: " + using);
    }
  }
View Full Code Here

  public void enableServices(Collection<Service> services) {
    for (com.opera.core.systems.scope.Service service : services) {
      try {
        enable(service);
      } catch (InvalidProtocolBufferException e) {
        throw new ScopeException("Could not parse the message", e);
      }
    }
  }
View Full Code Here

      if (!connected) {
        throw new CommunicationException("Waiting aborted - not connected!");
      }
      lock.wait(timeout);
    } catch (InterruptedException e) {
      throw new ScopeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.scope.exceptions.ScopeException

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.