1 23 package com.sun.enterprise.config; 24 25 30 31 public class ConfigRuntimeException extends RuntimeException { 32 33 35 private String _code = null; 36 37 public ConfigRuntimeException(Throwable cause) { 38 super(cause); 39 } 40 41 45 public ConfigRuntimeException(String message) { 46 super(message); 47 } 48 49 public ConfigRuntimeException(String message, Throwable cause) { 50 super(message + "\ncause: " + (cause==null ? "not known" : cause.getMessage()), cause); 51 } 52 53 public ConfigRuntimeException(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 |