- Timestamp:
- 05/27/13 15:54:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUThreadedClient.java
r2870 r2936 107 107 /** 108 108 * Register a record data parser. 109 * 109 * 110 110 * @param parser 111 111 * a parser instance 112 * @throws SRUClientException113 * if a parser handing the same record schema is already114 * registered115 112 * @throws NullPointerException 116 113 * if any required argument is <code>null</code> 117 114 * @throws IllegalArgumentException 118 * if the supplied parser is invalid 119 * /120 public void registerRecordParser(SRURecordDataParser parser)121 throws SRUClientException{115 * if the supplied parser is invalid or a parser handing the 116 * same record schema is already registered 117 */ 118 public void registerRecordParser(SRURecordDataParser parser) { 122 119 if (parser == null) { 123 120 throw new NullPointerException("parser == null"); … … 133 130 134 131 if (parsers.putIfAbsent(recordSchema, parser) != null) { 135 throw new SRUClientException(132 throw new IllegalArgumentException( 136 133 "record data parser already registered: " + recordSchema); 137 134
Note: See TracChangeset
for help on using the changeset viewer.