View | Details | Raw Unified | Return to bug 50929
Collapse All | Expand All

(-)java/javax/servlet/http/HttpUtils.java (-2 / +2 lines)
Lines 182-188 Link Here
182
            } while ((len - offset) > 0);
182
            } while ((len - offset) > 0);
183
183
184
        } catch (IOException e) {
184
        } catch (IOException e) {
185
            throw new IllegalArgumentException(e.getMessage());
185
            throw new IllegalArgumentException(e.getMessage(), e);
186
        }
186
        }
187
187
188
        // XXX we shouldn't assume that the only kind of POST body
188
        // XXX we shouldn't assume that the only kind of POST body
Lines 194-200 Link Here
194
        } catch (java.io.UnsupportedEncodingException e) {
194
        } catch (java.io.UnsupportedEncodingException e) {
195
            // XXX function should accept an encoding parameter & throw this
195
            // XXX function should accept an encoding parameter & throw this
196
            // exception.  Otherwise throw something expected.
196
            // exception.  Otherwise throw something expected.
197
            throw new IllegalArgumentException(e.getMessage());
197
            throw new IllegalArgumentException(e.getMessage(), e);
198
        }
198
        }
199
    }
199
    }
200
200
(-)java/org/apache/catalina/connector/CoyoteInputStream.java (-5 / +5 lines)
Lines 101-107 Link Here
101
                if (e instanceof IOException){
101
                if (e instanceof IOException){
102
                    throw (IOException)e;
102
                    throw (IOException)e;
103
                } else {
103
                } else {
104
                    throw new RuntimeException(e.getMessage());
104
                    throw new RuntimeException(e.getMessage(), e);
105
                }
105
                }
106
            }
106
            }
107
        } else {
107
        } else {
Lines 131-137 Link Here
131
                if (e instanceof IOException){
131
                if (e instanceof IOException){
132
                    throw (IOException)e;
132
                    throw (IOException)e;
133
                } else {
133
                } else {
134
                    throw new RuntimeException(e.getMessage());
134
                    throw new RuntimeException(e.getMessage(), e);
135
                }
135
                }
136
            }
136
            }
137
        } else {
137
        } else {
Lines 162-168 Link Here
162
                if (e instanceof IOException){
162
                if (e instanceof IOException){
163
                    throw (IOException)e;
163
                    throw (IOException)e;
164
                } else {
164
                } else {
165
                    throw new RuntimeException(e.getMessage());
165
                    throw new RuntimeException(e.getMessage() ,e);
166
                }
166
                }
167
            }
167
            }
168
        } else {
168
        } else {
Lines 195-201 Link Here
195
                if (e instanceof IOException){
195
                if (e instanceof IOException){
196
                    throw (IOException)e;
196
                    throw (IOException)e;
197
                } else {
197
                } else {
198
                    throw new RuntimeException(e.getMessage());
198
                    throw new RuntimeException(e.getMessage(), e);
199
                }
199
                }
200
            }
200
            }
201
        } else {
201
        } else {
Lines 235-241 Link Here
235
                if (e instanceof IOException){
235
                if (e instanceof IOException){
236
                    throw (IOException)e;
236
                    throw (IOException)e;
237
                } else {
237
                } else {
238
                    throw new RuntimeException(e.getMessage());
238
                    throw new RuntimeException(e.getMessage(), e);
239
                }
239
                }
240
            }
240
            }
241
        } else {
241
        } else {
(-)java/org/apache/catalina/realm/JDBCRealm.java (-1 / +1 lines)
Lines 698-704 Link Here
698
                driver = (Driver) clazz.newInstance();
698
                driver = (Driver) clazz.newInstance();
699
            } catch (Throwable e) {
699
            } catch (Throwable e) {
700
                ExceptionUtils.handleThrowable(e);
700
                ExceptionUtils.handleThrowable(e);
701
                throw new SQLException(e.getMessage());
701
                throw new SQLException(e.getMessage(), e);
702
            }
702
            }
703
        }
703
        }
704
704
(-)java/org/apache/catalina/valves/JDBCAccessLogValve.java (-1 / +1 lines)
Lines 573-579 Link Here
573
                driver = (Driver) clazz.newInstance();
573
                driver = (Driver) clazz.newInstance();
574
            } catch (Throwable e) {
574
            } catch (Throwable e) {
575
                ExceptionUtils.handleThrowable(e);
575
                ExceptionUtils.handleThrowable(e);
576
                throw new SQLException(e.getMessage());
576
                throw new SQLException(e.getMessage(), e);
577
            }
577
            }
578
        }
578
        }
579
579
(-)java/org/apache/naming/resources/WARDirContext.java (-1 / +1 lines)
Lines 990-996 Link Here
990
                    return is;
990
                    return is;
991
                }
991
                }
992
            } catch (ZipException e) {
992
            } catch (ZipException e) {
993
                throw new IOException(e.getMessage());
993
                throw new IOException(e.getMessage(), e);
994
            }
994
            }
995
            return super.streamContent();
995
            return super.streamContent();
996
        }
996
        }
(-)java/org/apache/tomcat/util/digester/NodeCreateRule.java (-4 / +4 lines)
Lines 172-178 Link Here
172
                    top.appendChild(doc.createTextNode(str));
172
                    top.appendChild(doc.createTextNode(str));
173
                }
173
                }
174
            } catch (DOMException e) {
174
            } catch (DOMException e) {
175
                throw new SAXException(e.getMessage());
175
                throw new SAXException(e.getMessage(), e);
176
            }
176
            }
177
177
178
        }
178
        }
Lines 202-208 Link Here
202
                top = top.getParentNode();
202
                top = top.getParentNode();
203
                depth--;
203
                depth--;
204
            } catch (DOMException e) {
204
            } catch (DOMException e) {
205
                throw new SAXException(e.getMessage());
205
                throw new SAXException(e.getMessage(), e);
206
            }
206
            }
207
207
208
        }
208
        }
Lines 225-231 Link Here
225
            try {
225
            try {
226
                top.appendChild(doc.createProcessingInstruction(target, data));
226
                top.appendChild(doc.createProcessingInstruction(target, data));
227
            } catch (DOMException e) {
227
            } catch (DOMException e) {
228
                throw new SAXException(e.getMessage());
228
                throw new SAXException(e.getMessage(), e);
229
            }
229
            }
230
230
231
        }
231
        }
Lines 270-276 Link Here
270
                previousTop.appendChild(top);
270
                previousTop.appendChild(top);
271
                depth++;
271
                depth++;
272
            } catch (DOMException e) {
272
            } catch (DOMException e) {
273
                throw new SAXException(e.getMessage());
273
                throw new SAXException(e.getMessage(), e);
274
            }
274
            }
275
275
276
        }
276
        }

Return to bug 50929