thrown exception when using an unsupported format