org.kohsuke.youdebug.BundledExceptionRequest.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of youdebug Show documentation
Show all versions of youdebug Show documentation
YouDebug is a non-interactive debugger scripted by Groovy to assist
remote troubleshooting and data collection to analyze failures.
The newest version!
package org.kohsuke.youdebug
import com.sun.jdi.request.ExceptionRequest
import com.sun.jdi.request.ClassPrepareRequest
import com.sun.jdi.ReferenceType
import com.sun.jdi.ThreadReference
import com.sun.jdi.ObjectReference
/**
*
*
* @author Kohsuke Kawaguchi
*/
public class BundledExceptionRequest extends BundledEventRequestWithClassPrepare implements ExceptionRequest {
/*package*/ BundledExceptionRequest(ClassPrepareRequest req, List requests) {
super(req, requests);
}
/*package*/ BundledExceptionRequest(List requests) {
this(null,requests);
}
public ReferenceType exception() {
return null;
}
public List exceptions() {
List r = new ArrayList();
for (ExceptionRequest request : requests)
r.add(request.exception());
return r;
}
public boolean notifyCaught() {
return one().notifyCaught();
}
public boolean notifyUncaught() {
return one().notifyUncaught();
}
public void addThreadFilter(ThreadReference thread) {
requests*.addThreadFilter(thread);
}
public void addClassFilter(ReferenceType refType) {
requests*.addClassFilter(refType);
}
public void addClassFilter(String classPattern) {
requests*.addClassFilter(classPattern);
}
public void addClassExclusionFilter(String classPattern) {
requests*.addClassExclusionFilter(classPattern);
}
public void addInstanceFilter(ObjectReference instance) {
requests*.addInstanceFilter(instance);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy