1 28 29 package com.caucho.util; 30 31 import java.io.PrintStream ; 32 import java.io.PrintWriter ; 33 34 38 public class RegistryException extends java.io.IOException 39 implements ExceptionWrapper { 40 private Throwable _rootCause; 41 42 45 public RegistryException() 46 { 47 } 48 49 52 public RegistryException(String msg) 53 { 54 super(msg); 55 } 56 57 60 public RegistryException(String msg, Throwable e) 61 { 62 super(msg); 63 64 _rootCause = e; 65 } 66 67 70 public RegistryException(Throwable e) 71 { 72 _rootCause = e; 73 } 74 75 78 public Throwable getRootCause() 79 { 80 return _rootCause; 81 } 82 83 86 public void printStackTrace() 87 { 88 if (_rootCause != null) 89 _rootCause.printStackTrace(); 90 else 91 super.printStackTrace(); 92 } 93 94 97 public void printStackTrace(PrintStream os) 98 { 99 if (_rootCause != null) 100 _rootCause.printStackTrace(os); 101 else 102 super.printStackTrace(os); 103 } 104 105 108 public void printStackTrace(PrintWriter os) 109 { 110 if (_rootCause != null) 111 _rootCause.printStackTrace(os); 112 else 113 super.printStackTrace(os); 114 } 115 } 116 117 118 | Popular Tags |