KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > xml > BpelException


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