jpdlexception.java
来自「一个java工作流引擎」· Java 代码 · 共 35 行
JAVA
35 行
package org.jbpm;
import java.util.*;
import java.util.List;
/**
* is the checked exception that is thrown at deployment-time when a process archive
* is not compliant as specified in the
* <a href="http://jbpm.org/jpdl.html">jBpm Process Defintition Language (jPdl)</a>.
* A JpdlException tries to collect as many error messages in one parsing or
* validation, analogue to a compiler. This allows a process developer to
* correct more then one problem before redeploying the process archive.
* Get the error messages with {@link #errors()}.
* @see http://jbpm.org/jpdl.html
*/
public class JpdlException extends Exception {
private List errors = null;
public JpdlException(String msg) {
super( msg );
errors = new ArrayList(1);
errors.add( msg );
}
public JpdlException(List errors) {
super( errors.toString() );
this.errors = errors;
}
public List errors() {
return errors;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?