📄 jpdlexception.java
字号:
package org.jgpd.io.jbpm.definition;
import java.util.*;
/**
* is the checked exception that is thrown when a process archive
* is not compliant as specified in the jBpm Process Defintition Language (jPdl).
* 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.
* Each message is optionally composed of a list of sub-messages separated
* by colons ':'. The sub-messages are ordered from general to specific.
* @see http://jbpm.org/jpdl.html
*/
public class JpdlException extends Exception {
public JpdlException( String msg ) {
super( msg );
this.errorMsgs = new ArrayList(1);
this.errorMsgs.add( msg );
}
public JpdlException( List errorMsgs ) {
super( errorMsgs.toString() );
this.errorMsgs = errorMsgs;
}
public List getErrorMsgs() {
return errorMsgs;
}
private List errorMsgs = null;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -