1 23 package com.sun.enterprise.config; 24 25 30 31 public class ConfigException extends Exception { 32 33 35 private String _code = null; 36 37 public ConfigException(Throwable cause) { 38 super(cause); 39 } 40 41 45 public ConfigException(String message) { 46 super(message); 47 } 48 49 public ConfigException(String message, Throwable cause) { 50 super(message + "\ncause: " + (cause==null ? "not known" : cause.getMessage()), cause); 51 } 52 53 public ConfigException(String code, String message, Throwable cause) { 54 super(message + "\ncause: " + (cause==null ? "not known" : cause.getMessage()), cause); 55 _code = code; 56 } 57 58 public String getCode() { 59 return _code; 60 } 61 } 62 | Popular Tags |