1 48 49 package com.caucho.hessian.client; 50 51 54 public class HessianRuntimeException extends RuntimeException { 55 private Throwable rootCause; 56 57 60 public HessianRuntimeException() 61 { 62 } 63 64 67 public HessianRuntimeException(String message) 68 { 69 super(message); 70 } 71 72 75 public HessianRuntimeException(String message, Throwable rootCause) 76 { 77 super(message); 78 79 this.rootCause = rootCause; 80 } 81 82 85 public HessianRuntimeException(Throwable rootCause) 86 { 87 super(String.valueOf(rootCause)); 88 89 this.rootCause = rootCause; 90 } 91 92 95 public Throwable getRootCause() 96 { 97 return this.rootCause; 98 } 99 100 103 public Throwable getCause() 104 { 105 return getRootCause(); 106 } 107 } 108 | Popular Tags |