1 48 49 package com.caucho.services.name; 50 51 import java.io.IOException ; 52 53 57 public class NameServiceException extends IOException { 58 private Throwable rootCause; 59 60 63 public NameServiceException() 64 { 65 } 66 67 70 public NameServiceException(String name) 71 { 72 super(name); 73 } 74 75 78 public NameServiceException(String name, Throwable rootCause) 79 { 80 super(name); 81 82 this.rootCause = rootCause; 83 } 84 85 88 public NameServiceException(Throwable rootCause) 89 { 90 super(String.valueOf(rootCause)); 91 92 this.rootCause = rootCause; 93 } 94 95 98 public Throwable getRootCause() 99 { 100 return rootCause; 101 } 102 } 103 | Popular Tags |