Heartstopper Commit

Enabled every catch block in the project to log parsed exceptions.
This commit is contained in:
ronancpl
2017-04-02 21:38:07 -03:00
parent 3990a08202
commit 5f01d3b7fd
88 changed files with 13325 additions and 40964 deletions

View File

@@ -79,6 +79,7 @@ public class MapleAlliance {
ps.close();
rs.close();
} catch (SQLException e) {
e.printStackTrace();
}
return alliance;
}
@@ -107,6 +108,7 @@ public class MapleAlliance {
ps.executeQuery();
ps.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
@@ -146,6 +148,7 @@ public class MapleAlliance {
ps.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
return ret;
}

View File

@@ -103,6 +103,7 @@ public class MapleGuild {
ps.close();
rs.close();
} catch (SQLException se) {
se.printStackTrace();
System.out.println("unable to read guild information from sql" + se);
}
}
@@ -171,6 +172,7 @@ public class MapleGuild {
this.broadcast(MaplePacketCreator.guildDisband(this.id));
}
} catch (SQLException se) {
se.printStackTrace();
}
}
@@ -267,6 +269,7 @@ public class MapleGuild {
}
}
} catch (Exception re) {
re.printStackTrace();
System.out.println("Failed to contact channel(s) for broadcast.");//fu?
}
}
@@ -337,6 +340,7 @@ public class MapleGuild {
ps.close();
return guildid;
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
@@ -389,6 +393,7 @@ public class MapleGuild {
ps.executeUpdate();
}
} catch (SQLException e) {
e.printStackTrace();
System.out.println("expelMember - MapleGuild " + e);
}
Server.getInstance().getWorld(mgc.getWorld()).setOfflineGuildStatus((short) 0, (byte) 5, cid);
@@ -531,6 +536,7 @@ public class MapleGuild {
}
rs.close();
} catch (SQLException e) {
e.printStackTrace();
System.out.println("failed to display guild ranks. " + e);
}
}
@@ -548,6 +554,7 @@ public class MapleGuild {
ps.executeUpdate();
}
} catch (SQLException e) {
e.printStackTrace();
}
}