コード例 #1
0
 public IntervalWithTimeZone getTimespan() {
   try {
     return super.getTimespan();
   } catch (IoParseException e) {
     BadRequestException badRequest = new BadRequestException("Invalid timespan.", e);
     badRequest.addHint("Valid timespans have to be in ISO8601 period format.");
     badRequest.addHint("Valid examples: 'PT6H/2013-08-13TZ' or '2013-07-13TZ/2013-08-13TZ'.");
     throw badRequest;
   }
 }
コード例 #2
0
 @Override
 public BoundingBox getSpatialFilter() {
   try {
     return super.getSpatialFilter();
   } catch (IoParseException e) {
     BadRequestException ex =
         new BadRequestException("Spatial filter could not be determined.", e);
     ex.addHint("Refer to the API documentation and check the parameter against required syntax!");
     ex.addHint("Check http://epsg-registry.org for EPSG CRS definitions and codes.");
     throw ex;
   }
 }