Examples of DataFormatException


Examples of application.exceptions.DataFormatException

   *
   */
  public void setIndividu(ModeleIndividu individu) throws DataFormatException
  {
    if(individu == null)
      throw new DataFormatException("L'individu n'est pas defini.");

    _individu = individu;
  }
View Full Code Here

Examples of ca.uhn.fhir.parser.DataFormatException

      myValue = null;
    } else {
      try {
        myValue = Integer.parseInt(theValue);
      } catch (NumberFormatException e) {
        throw new DataFormatException(e);
      }
    }
  }
View Full Code Here

Examples of java.util.zip.DataFormatException

        decompresser.setInput(in, inPos, inLen);
        decompresser.finished();
        try {
            int len = decompresser.inflate(out, outPos, outLen);
            if (len != outLen) {
                throw new DataFormatException(len + " " + outLen);
            }
        } catch (DataFormatException e) {
            throw DbException.get(ErrorCode.COMPRESSION_ERROR, e);
        }
        decompresser.end();
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

 
  private void open(String fileName, String charsetName) throws MaltChainedException {
    try {
      open(new OutputStreamWriter(new FileOutputStream(fileName),charsetName));
    } catch (FileNotFoundException e) {
      throw new DataFormatException("The output file '"+fileName+"' cannot be found.", e);
    } catch (UnsupportedEncodingException e) {
      throw new DataFormatException("The character encoding set '"+charsetName+"' isn't supported.", e);
   
  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

          writer.close();
        }
        writer = null;
      }
    }   catch (IOException e) {
      throw new DataFormatException("Could not close the output file. ", e);
    }

  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

 
  public void open(String fileName, String charsetName) throws MaltChainedException {
    try {
      open(new OutputStreamWriter(new FileOutputStream(fileName),charsetName));
    } catch (FileNotFoundException e) {
      throw new DataFormatException("The output file '"+fileName+"' cannot be found.", e);
    } catch (UnsupportedEncodingException e) {
      throw new DataFormatException("The character encoding set '"+charsetName+"' isn't supported.", e);
   
  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

      if (os == System.out || os == System.err) {
        closeStream = false;
      }
      open(new OutputStreamWriter(os, charsetName));
    } catch (UnsupportedEncodingException e) {
      throw new DataFormatException("The character encoding set '"+charsetName+"' isn't supported.", e);
    }
  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

        }
        writer.write(NEWLINE);
        columns = dataFormatInstance.iterator();
      } catch (IOException e) {
        close();
        throw new DataFormatException("Could not write to the output file. ", e);
      }
    }
   
    try {
      writer.write('\n');
      writer.flush();
    } catch (IOException e) {
      close();
      throw new DataFormatException("Could not write to the output file. ", e);
    }
  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

          writer.close();
        }
        writer = null;
      }
    }   catch (IOException e) {
      throw new DataFormatException("Could not close the output file. ", e);
    }

  }
View Full Code Here

Examples of org.maltparserx.core.io.dataformat.DataFormatException

    try {
      if (graphWriterClass != null) {
        this.graphWriterClass = graphWriterClass.asSubclass(org.maltparserx.core.syntaxgraph.writer.SyntaxGraphWriter.class);
      }
    } catch (ClassCastException e) {
      throw new DataFormatException("The class '"+graphWriterClass.getName()+"' is not a subclass of '"+org.maltparserx.core.syntaxgraph.writer.SyntaxGraphWriter.class.getName()+"'. ", e);
    }
  }
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.