test_functionexception.drl

来自「jboss规则引擎」· DRL 代码 · 共 14 行

DRL
14
字号
package org.drools.test;

import org.drools.Cheese;

function void throwException() {
	throw new Exception( "this should throw an exception" );
}

rule "Throw Function Exception"
    when
    	cheese : Cheese( )
    then
		throwException();
end  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?