*
* @param type exception type
* @param expr initializer expression
*/
public void addThrowException(String type, ExpressionBuilderBase expr) {
ThrowStatement thrwstmt = m_ast.newThrowStatement();
ClassInstanceCreation exexpr = m_ast.newClassInstanceCreation();
exexpr.setType(m_ast.newSimpleType(m_ast.newSimpleName(type)));
exexpr.arguments().add(expr.getExpression());
thrwstmt.setExpression(exexpr);
m_block.statements().add(thrwstmt);
}