Examples of InitializationException


Examples of org.openhab.binding.comfoair.internal.InitializationException

        ComfoAirCommand command = ComfoAirCommandType.getChangeCommand(
            ComfoAirCommandType.ACTIVATE.key, new DecimalType(1));
        sendCommand(command);
      } catch (PortInUseException e) {
        throw new InitializationException(e);
      } catch (UnsupportedCommOperationException e) {
        throw new InitializationException(e);
      } catch (IOException e) {
        throw new InitializationException(e);
      }

    } catch (NoSuchPortException e) {
      StringBuilder sb = new StringBuilder();
      Enumeration portList = CommPortIdentifier.getPortIdentifiers();
      while (portList.hasMoreElements()) {
        CommPortIdentifier id = (CommPortIdentifier) portList
            .nextElement();
        if (id.getPortType() == CommPortIdentifier.PORT_SERIAL) {
          sb.append(id.getName() + "\n");
        }
      }

      throw new InitializationException("Serial port '" + port
          + "' could not be found. Available ports are:\n"
          + sb.toString());
    }
  }
View Full Code Here

Examples of org.qi4j.api.mixin.InitializationException

            {
                unitOfWork.complete();
            }
            catch( UnitOfWorkCompletionException e )
            {
                throw new InitializationException( e );
            }
        }
View Full Code Here

Examples of org.talend.esb.auxiliary.storage.common.exception.InitializationException

        try {
            schema = (new Schema.Parser()).parse(PersistencyFileManager.class.getResourceAsStream(schemaResourceName));
        } catch (Exception e) {
            String errorMessage = "Failed to initialize auxiliary storage persistency manager: " + e.getMessage();
            LOG.log(Level.SEVERE, errorMessage);
            throw new InitializationException(errorMessage);
        }


        File storageDir = new File(storageDirPath);
        if (!storageDir.exists()) {
            try {
                FileUtils.forceMkdir(storageDir);
            } catch (IOException e) {
                String errorMessage = "Failed to initialize auxiliary storage persistency manager. " +
                                      "Failed to create directory " + storageDirPath + " for file-based persistence storage. " +
                                      "Error message is: " + e.getMessage();
                LOG.log(Level.SEVERE, errorMessage);
                throw new InitializationException(errorMessage);
            }
        }
    }
View Full Code Here

Examples of pt.webdetails.cpf.exceptions.InitializationException

    if ( obj != null && obj instanceof ICdfEnvironment ) {
      return (ICdfEnvironment) obj;
    } else {
      String msg = "No bean found for " + simpleName;
      logger.fatal( msg );
      throw new InitializationException( msg, null );
    }
  }
View Full Code Here

Examples of wecui.exception.InitializationException

                logger.addHandler(newHandler);
            }

        } catch (IOException e) {
            e.printStackTrace(System.err);
            throw new InitializationException();
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.