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