Skip to content

Commit

Permalink
Clean up some exception throwing.
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Apr 8, 2015
1 parent 8503918 commit f310fe3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/org/kitteh/tag/TagAPI.java
Expand Up @@ -90,7 +90,7 @@ public TagAPI(iTag parent)
description = new PluginDescriptionFile( new StringReader( yaml ) );
} catch ( InvalidDescriptionException ex )
{
Throwables.propagate( ex );
throw Throwables.propagate( ex );
}

plugins.add( this );
Expand All @@ -115,13 +115,10 @@ private static Object getObj(Class<?> clazz, Object owner, String name)
Field field = clazz.getDeclaredField( name );
field.setAccessible( true );
return field.get( owner );
} catch ( Throwable t )
} catch ( Exception ex )
{
Throwables.propagate( t );
throw Throwables.propagate( ex );
}

// Impossible
return null;
}

public static void refreshPlayer(Player player)
Expand Down

0 comments on commit f310fe3

Please sign in to comment.