1 48 49 package com.caucho.hessian.io; 50 51 import java.io.IOException ; 52 53 57 public class HessianProtocolException extends IOException { 58 private Throwable rootCause; 59 60 63 public HessianProtocolException() 64 { 65 } 66 67 70 public HessianProtocolException(String message) 71 { 72 super(message); 73 } 74 75 78 public HessianProtocolException(String message, Throwable rootCause) 79 { 80 super(message); 81 82 this.rootCause = rootCause; 83 } 84 85 88 public HessianProtocolException(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 106 public Throwable getCause() 107 { 108 return getRootCause(); 109 } 110 } 111 | Popular Tags |