Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 25 26 27 package org.objectweb.jonas_ejb.genic; 28 29 34 public class GenICException extends Exception { 35 36 protected Exception inner = null; 37 38 41 public GenICException() { 42 super(); 43 } 44 45 48 public GenICException(String msg) { 49 super(msg); 50 } 51 52 public GenICException(String msg, Exception inner) { 53 super(msg); 54 this.inner = inner; 55 56 } 57 58 public String toString() { 59 String s = GenICException.class.getName() + ": " + super.getMessage(); 60 if (inner == null) { 61 return (s); 62 } else { 63 return (s + " (" + inner.toString() + ")"); 64 } 65 } 66 67 public String getMessage() { 68 String s = super.getMessage(); 69 if (inner == null) { 70 return (s); 71 } else { 72 return (s + " (" + inner.getMessage() + ")"); 73 } 74 } 75 76 public void printStackTrace() { 77 System.out.println(getMessage()); 78 if (inner != null) { 79 inner.printStackTrace(); 80 } 81 } 82 public void printStackTrace(java.io.PrintStream s) { 83 s.println(getMessage()); 84 if (inner != null) { 85 inner.printStackTrace(s); 86 } 87 } 88 public void printStackTrace(java.io.PrintWriter s) { 89 s.println(getMessage()); 90 if (inner != null) { 91 inner.printStackTrace(s); 92 } 93 } 94 } 95
| Popular Tags
|