📄 jpdlexception.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -