Axis generate() {
try {
Axis axis = namingConvention.getAxis(axisColor, indexFullName() );
// This check has been moved into a thorough unit test instead of a runtime check.
// but I'll leave the code commented out here in case additional colors are eventually supported and need debugging
// String check = namingConvention.getName( axis );
// if ( axis != namingConvention.getAxis(axisColor, check ) ) {
// log( axisColor + " " + indexFullName() + " mapped to " + check );
// }
if(axis == null) {
InputMismatchException imex = new InputMismatchException(parser);
logger.log(Level.WARNING, imex.getMessage(), imex);
throw imex;
}
return axis;
//} catch( ArrayIndexOutOfBoundsException ex ){
//} catch( NullPointerException ex ) {
} catch( RuntimeException ex) {
String msg = "bad axis specification: '" + axisColor + " " + indexFullName() + "'";
logger.warning(msg);
throw new RuntimeException( msg, ex);
}
}
ZomicASTCompiler.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:vzome-core
作者:
评论列表
文章目录