01 package com.bea.medrec.utils;
02
03 /**
04 * <p>Custom client exception class.</p>
05 *
06 * @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
07 */
08 public class ClientException extends Exception
09 {
10 // Instance variables
11 private String link;
12
13 // Constructors
14 public ClientException() { }
15 public ClientException(String errMsg) { super(errMsg); }
16 public ClientException(Throwable cause) { super(cause); }
17 public ClientException(Throwable cause, String link) {
18 super(cause);
19 this.link = link;
20 }
21 public ClientException(String errMsg, Throwable cause) {
22 super(errMsg, cause);
23 }
24 public ClientException(String errMsg, String link) {
25 super(errMsg);
26 this.link = link;
27 }
28
29 // Getters
30 public String getLink() { return this.link; }
31
32
33 // Setters
34 public void setLink(String link) { this.link = link; }
35
36 }
|