source: josm/trunk/src/org/openstreetmap/josm/io/OfflineAccessException.java@ 7509

Last change on this file since 7509 was 7434, checked in by Don-vip, 10 years ago

fix #8885 (see #4614) - add offline mode with new command line argument --offline which can take one of several of these values (comma separated):

  • josm_website: to disable all accesses to JOSM website (when not cached, disables Getting Started page, help, plugin list, styles, imagery, presets, rules)
  • osm_api: to disable all accesses to OSM API (disables download, upload, changeset queries, history, user message notification)
  • all: alias to disable all values. Currently equivalent to "josm_website,osm_api"

Plus improved javadoc, fixed EDT violations, and fixed a bug with HTTP redirection sent without "Location" header

File size: 476 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io;
3
4/**
5 * Exception thrown when an online resource is accessed while in offline mode.
6 * @since 7434
7 */
8public class OfflineAccessException extends IllegalStateException {
9
10 /**
11 * Constructs a new {@code OfflineAccessException}.
12 * @param s the String that contains a detailed message
13 */
14 public OfflineAccessException(String s) {
15 super(s);
16 }
17}
Note: See TracBrowser for help on using the repository browser.