Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Design decision question about the Avro Java API


Copy link to this message
-
Design decision question about the Avro Java API
Hello,

The question is quite simple: why is SchemaParseException an unchecked
exception?

This complicates handling parsing errors quite a bit, especially since
it doesn't make the distinction between actual parsing errors and
schema logic errors. For instance, this:

final String input = "\"astring\"";

throws a parsing exception, even though this is valid JSON (but not a
valid schema). And this:

final String input = "string";

also throws a parsing exception, but this time for a good reason,
since this is not valid JSON.

Are there plans to separate these exceptions, and more important, are
there plans to turn these into checked exceptions?

--
Francis Galiegue, [EMAIL PROTECTED]
JSON Schema in Java: http://json-schema-validator.herokuapp.com
+
Doug Cutting 2013-02-27, 18:09
+
Francis Galiegue 2013-02-27, 18:17
+
Tatu Saloranta 2013-02-27, 18:34
+
Francis Galiegue 2013-02-27, 18:42
+
Tatu Saloranta 2013-02-27, 19:00
+
Doug Cutting 2013-02-27, 18:45
+
Francis Galiegue 2013-02-27, 18:47
+
Doug Cutting 2013-02-27, 19:02
+
Eric Sammer 2013-03-04, 08:16
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB