Package com.kurento.kmf.common.exception

Examples of com.kurento.kmf.common.exception.KurentoException


    } else if (mode == Mode.PER_CLIENT) {

      try {
        client.sendRequest("keepAlive", null);
      } catch (IOException e) {
        throw new KurentoException(
            "Exception while sending keepAlive from session "
                + client.getSession().getSessionId());
      }

    } else {
      throw new KurentoException("Unrecognized keepAlive mode = " + mode);
    }

    log.debug("Finish sending keepAlives");
  }
View Full Code Here


      try {
        // FIXME: Make this configurable and search a way to detect the
        // underlying connection timeout
        if (!latch.await(10, TimeUnit.SECONDS)) {
          throw new KurentoException(
              "Timeout of 10s when waiting to connect to Websocket server");
        }

        if (session == null) {
View Full Code Here

      return response;

    } catch (InterruptedException e) {
      // TODO What to do in this case?
      throw new KurentoException(
          "Interrupted while waiting for a response", e);
    } catch (ExecutionException e) {
      // TODO Is there a better way to handle this?
      throw new KurentoException("This exception shouldn't be thrown", e);
    } catch (TimeoutException e) {
      throw new TransportException("Timeout of " + TIMEOUT
          + " seconds waiting from response", e);
    }
  }
View Full Code Here

    if (os != null) {
      try {
        os.close();
      } catch (IOException e) {
        throw new KurentoException(e);
      }
    }
  }
View Full Code Here

    checkState(State.STORED);

    try {
      return new FileInputStream(file);
    } catch (FileNotFoundException e) {
      throw new KurentoException(
          "The file storing this repositoty item was deleted before creation",
          e);
    }
  }
View Full Code Here

      };

      return storingOutputStream;

    } catch (FileNotFoundException e) {
      throw new KurentoException(
          "There is a problem opening the output stream to the file "
              + "that will store the contents of the repositoty item",
          e);
    }
  }
View Full Code Here

      return new FileSystemRepository();
    } else if (repositoryApiConfiguration().getRepositoryType().equals(
        "mongodb")) {
      return new MongoRepository();
    } else {
      throw new KurentoException(
          "Unrecognized repository type. Must be filesystem or mongodb");
    }
  }
View Full Code Here

      return bean;
    } else {
      try {
        return beanClass.newInstance();
      } catch (InstantiationException | IllegalAccessException e) {
        throw new KurentoException(
            "Exception creating default configuration for "
                + beanClass.getSimpleName(), e);
      }
    }
  }
View Full Code Here

            .addBeanFactoryPostProcessor(propertyOverrideConfigurer);
        inputStream.close();
      }

    } catch (IOException e) {
      throw new KurentoException("Exception loading custom properties", e);
    }

    kurentoApplicationContextInternalReference.refresh();
    return kurentoApplicationContextInternalReference;
  }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.common.exception.KurentoException

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.