Merge pull request #1299 from thatsIch/e-qol-exception-messages

Improved exceptions
This commit is contained in:
thatsIch
2015-04-23 23:41:44 +02:00
76 changed files with 288 additions and 290 deletions
+3 -2
View File
@@ -54,7 +54,8 @@ public enum PartRegistry
return pr.name;
}
}
throw new RuntimeException( "Invalid PartName" );
throw new IllegalStateException( "Invalid PartName" );
}
public static TMultiPart getPartByBlock( Block block, int meta )
@@ -80,7 +81,7 @@ public enum PartRegistry
}
catch( Throwable t )
{
throw new RuntimeException( t );
throw new IllegalStateException( t );
}
}