Improved Part API Errors.
This commit is contained in:
@@ -96,6 +96,8 @@ public class ApiPart implements IPartHelper
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ClassNode getReader(String name) throws IOException
|
public ClassNode getReader(String name) throws IOException
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
ClassReader cr;
|
ClassReader cr;
|
||||||
String path = "/" + name.replace( ".", "/" ) + ".class";
|
String path = "/" + name.replace( ".", "/" ) + ".class";
|
||||||
@@ -105,6 +107,11 @@ public class ApiPart implements IPartHelper
|
|||||||
cr.accept( cn, ClassReader.EXPAND_FRAMES );
|
cr.accept( cn, ClassReader.EXPAND_FRAMES );
|
||||||
return cn;
|
return cn;
|
||||||
}
|
}
|
||||||
|
catch (Throwable t)
|
||||||
|
{
|
||||||
|
throw new RuntimeException( "Error loading " + name, t );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Class getCombinedInstance(String base)
|
public Class getCombinedInstance(String base)
|
||||||
{
|
{
|
||||||
@@ -167,6 +174,7 @@ public class ApiPart implements IPartHelper
|
|||||||
}
|
}
|
||||||
catch (Throwable t)
|
catch (Throwable t)
|
||||||
{
|
{
|
||||||
|
AELog.warning( "Error loading " + name );
|
||||||
AELog.error( t );
|
AELog.error( t );
|
||||||
// throw new RuntimeException( t );
|
// throw new RuntimeException( t );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user