[Biojava-dev] DNATools.createDNA and IllegalSymbolException

Dirk Habighorst dirk.habighorst at epigenomics.com
Mon May 26 21:53:01 EDT 2003


Hi,

The IllegalSystemException cannot be thrown here since it is handled in the catch block. Is it the desired behaviour to get a BioError here? I would prefer to have the choice of catching the IllegalSymbolException here.

--- snip ---
  public static SymbolList createDNA(String dna)
  throws IllegalSymbolException {
    try {
      SymbolTokenization p = getDNA().getTokenization("token");
      return new SimpleSymbolList(p, dna);
    } catch (BioException se) {
      throw new BioError(se, "Something has gone badly wrong with DNA");
    }
  }
--- snip ---

ciao dirk
-- 
  Dirk Habighorst			e-mail:dirk at epigenomics.de
  Epigenomics AG			Tel.: +49-30-24345-372
  Kleine Präsidentenstrasse 1
  10178 Berlin



More information about the biojava-dev mailing list