Skip to content

3. Exception handling

mdstroop edited this page Jul 27, 2016 · 1 revision

#Exception handling

##Input, output and stylesheet directory

  • When the directory doesn't exist it will be created.
  • If the argument is not a correct path the directory won't be created.

Logger output:

java.lang.IllegalArgumentException: The input directory (..) is not a directory
	at com.fedict.wsdl2dcat.Converter.convertToDCAT(Converter.java:115)
	at com.fedict.wsdl2dcat.Converter.convertToDCAT(Converter.java:85)
	at com.fedict.wsdl2dcat.WSDL2DCAT.main(WSDL2DCAT.java:69)

##File type

  • If there aren't files in the input directory with this file type there won't be a conversion.

Logger output:

java.lang.IllegalArgumentException: No (...) file found in directory: (...)
	at com.fedict.wsdl2dcat.Converter.convertToDCAT(Converter.java:154)
	at com.fedict.wsdl2dcat.Converter.convertToDCAT(Converter.java:101)
	at com.fedict.wsdl2dcat.Converter.convertToDCAT(Converter.java:78)
	at com.fedict.wsdl2dcat.WSDL2DCAT.main(WSDL2DCAT.java:42)
Clone this wiki locally