Ignore:
Timestamp:
2017-03-19T02:26:34+01:00 (7 years ago)
Author:
Don-vip
Message:

PMD - Strict Exceptions

Location:
trunk/src/org/openstreetmap/josm/actions/audio
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java

    r6380 r11746  
    88import java.awt.event.ActionEvent;
    99import java.awt.event.KeyEvent;
     10import java.io.IOException;
    1011
    1112import org.openstreetmap.josm.Main;
     
    3839            else
    3940                MarkerLayer.playAudio();
    40         } catch (Exception ex) {
     41        } catch (IOException | InterruptedException ex) {
    4142            AudioPlayer.audioMalfunction(ex);
    4243        }
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioFastSlowAction.java

    r8444 r11746  
    33
    44import java.awt.event.ActionEvent;
     5import java.io.IOException;
    56
    67import org.openstreetmap.josm.Main;
     
    4142            if (AudioPlayer.playing() || AudioPlayer.paused())
    4243                AudioPlayer.play(AudioPlayer.url(), AudioPlayer.position(), speed * multiplier);
    43         } catch (Exception ex) {
     44        } catch (IOException | InterruptedException ex) {
    4445            AudioPlayer.audioMalfunction(ex);
    4546        }
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java

    r6380 r11746  
    77import java.awt.event.ActionEvent;
    88import java.awt.event.KeyEvent;
     9import java.io.IOException;
    910
    1011import org.openstreetmap.josm.Main;
     
    3637            else
    3738                MarkerLayer.playAudio();
    38         } catch (Exception ex) {
     39        } catch (IOException | InterruptedException ex) {
    3940            AudioPlayer.audioMalfunction(ex);
    4041        }
  • trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java

    r11452 r11746  
    77import java.awt.event.ActionEvent;
    88import java.awt.event.KeyEvent;
     9import java.io.IOException;
    910import java.net.URL;
    1011
     
    5354                }
    5455            }
    55         } catch (Exception ex) {
     56        } catch (IOException | InterruptedException ex) {
    5657            AudioPlayer.audioMalfunction(ex);
    5758        }
Note: See TracChangeset for help on using the changeset viewer.