1 17 18 19 package org.apache.catalina.connector; 20 21 import java.io.IOException ; 22 23 30 31 public final class ClientAbortException extends IOException { 32 33 34 36 37 40 public ClientAbortException() { 41 42 this(null, null); 43 44 } 45 46 47 52 public ClientAbortException(String message) { 53 54 this(message, null); 55 56 } 57 58 59 64 public ClientAbortException(Throwable throwable) { 65 66 this(null, throwable); 67 68 } 69 70 71 78 public ClientAbortException(String message, Throwable throwable) { 79 80 super(); 81 this.message = message; 82 this.throwable = throwable; 83 84 } 85 86 87 89 90 93 protected String message = null; 94 95 96 99 protected Throwable throwable = null; 100 101 102 104 105 108 public String getMessage() { 109 110 return (message); 111 112 } 113 114 115 118 public Throwable getCause() { 119 120 return (throwable); 121 122 } 123 124 125 128 public String toString() { 129 130 StringBuffer sb = new StringBuffer ("ClientAbortException: "); 131 if (message != null) { 132 sb.append(message); 133 if (throwable != null) { 134 sb.append(": "); 135 } 136 } 137 if (throwable != null) { 138 sb.append(throwable.toString()); 139 } 140 return (sb.toString()); 141 142 } 143 144 145 } 146 | Popular Tags |