1 package org.jbpm.bpel.xml; 2 3 import org.w3c.dom.Element ; 4 5 public class BpelException extends RuntimeException { 6 7 private static final long serialVersionUID = 1L; 8 9 private Element location; 10 11 public BpelException(String message, Element location) { 12 this(message); 13 this.location = location; 14 } 15 16 public BpelException(String message, Exception e) { 17 super(message, e); 18 } 19 20 public BpelException(String message) { 21 super(message); 22 } 23 24 public Element getLocation() { 25 return location; 26 } 27 28 public String toString() { 29 String output = super.toString(); 30 return (location == null) ? output 31 : output + " at [" + location + "]"; 32 } 33 } | Popular Tags |