1 23 package com.sun.enterprise.repository; 24 25 public class DataSourceParserException extends Exception { 26 27 private Exception ex; 28 29 public DataSourceParserException() { 30 } 31 32 public DataSourceParserException(Exception ex) { 33 this.ex = ex; 34 } 35 36 public Exception getNestedException() { 37 return ex; 38 } 39 40 public String toString() { 41 if (ex == null) { 42 return super.toString(); 43 } else { 44 return super.toString() + "\n" + ex.toString(); 45 } 46 } 47 } 48 | Popular Tags |