Ignore:
Timestamp:
2016-12-09T23:31:13+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S00112 - Generic exceptions should never be thrown: define JosmRuntimeException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r11360 r11374  
    4040import org.openstreetmap.josm.tools.ColorHelper;
    4141import org.openstreetmap.josm.tools.Geometry;
     42import org.openstreetmap.josm.tools.JosmRuntimeException;
    4243import org.openstreetmap.josm.tools.RightAndLefthandTraffic;
    4344import org.openstreetmap.josm.tools.SubclassFilteredCollection;
     
    9798            parameterFunctions.add(Math.class.getMethod("tanh", double.class));
    9899        } catch (NoSuchMethodException | SecurityException ex) {
    99             throw new RuntimeException(ex);
     100            throw new JosmRuntimeException(ex);
    100101        }
    101102    }
     
    12401241                result = m.invoke(null, convertedArgs);
    12411242            } catch (IllegalAccessException | IllegalArgumentException ex) {
    1242                 throw new RuntimeException(ex);
     1243                throw new JosmRuntimeException(ex);
    12431244            } catch (InvocationTargetException ex) {
    12441245                Main.error(ex);
     
    13061307                result = m.invoke(null, convertedArgs);
    13071308            } catch (IllegalAccessException | IllegalArgumentException ex) {
    1308                 throw new RuntimeException(ex);
     1309                throw new JosmRuntimeException(ex);
    13091310            } catch (InvocationTargetException ex) {
    13101311                Main.error(ex);
Note: See TracChangeset for help on using the changeset viewer.