Mercurial > projects > dwt-addons
comparison dwtx/jface/text/templates/persistence/TemplateReaderWriter.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 6dcb0baaa031 |
children | 02cd5f1224d3 |
comparison
equal
deleted
inserted
replaced
137:25170b5a8951 | 138:b6bad70d540a |
---|---|
214 | 214 |
215 } catch (ParserConfigurationException e) { | 215 } catch (ParserConfigurationException e) { |
216 Assert.isTrue(false); | 216 Assert.isTrue(false); |
217 } catch (SAXException e) { | 217 } catch (SAXException e) { |
218 Throwable t= e.getCause(); | 218 Throwable t= e.getCause(); |
219 if (t instanceof IOException) | 219 if ( cast(IOException)t ) |
220 throw cast(IOException) t; | 220 throw cast(IOException) t; |
221 else if (t !is null) | 221 else if (t !is null) |
222 throw new IOException(t.getMessage()); | 222 throw new IOException(t.getMessage()); |
223 else | 223 else |
224 throw new IOException(e.getMessage()); | 224 throw new IOException(e.getMessage()); |