mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-03-02 14:49:06 +00:00
Log operation that caused an I/O error
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1570195 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
24d5d8b454
commit
238195f058
@ -60,7 +60,7 @@ public int read() throws IOException {
|
|||||||
}
|
}
|
||||||
return b;
|
return b;
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.input("[read] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -76,7 +76,7 @@ public int read(final byte[] b) throws IOException {
|
|||||||
}
|
}
|
||||||
return bytesRead;
|
return bytesRead;
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.input("[read] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ public int read(final byte[] b, final int off, final int len) throws IOException
|
|||||||
}
|
}
|
||||||
return bytesRead;
|
return bytesRead;
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.input("[read] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ public long skip(final long n) throws IOException {
|
|||||||
try {
|
try {
|
||||||
return super.skip(n);
|
return super.skip(n);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.input("[skip] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ public int available() throws IOException {
|
|||||||
try {
|
try {
|
||||||
return in.available();
|
return in.available();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.input("[available] I/O error : " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -137,7 +137,7 @@ public void close() throws IOException {
|
|||||||
try {
|
try {
|
||||||
in.close();
|
in.close();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.input("[close] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ public void write(final int b) throws IOException {
|
|||||||
try {
|
try {
|
||||||
wire.output(b);
|
wire.output(b);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.output("[write] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -65,7 +65,7 @@ public void write(final byte[] b) throws IOException {
|
|||||||
wire.output(b);
|
wire.output(b);
|
||||||
out.write(b);
|
out.write(b);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.output("[write] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -76,7 +76,7 @@ public void write(final byte[] b, final int off, final int len) throws IOExcepti
|
|||||||
wire.output(b, off, len);
|
wire.output(b, off, len);
|
||||||
out.write(b, off, len);
|
out.write(b, off, len);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.output("[write] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ public void flush() throws IOException {
|
|||||||
try {
|
try {
|
||||||
out.flush();
|
out.flush();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.output("[flush] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -96,7 +96,7 @@ public void close() throws IOException {
|
|||||||
try {
|
try {
|
||||||
out.close();
|
out.close();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
wire.input("I/O error: " + ex.getMessage());
|
wire.output("[close] I/O error: " + ex.getMessage());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user