mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 03:19:13 +00:00
Catching Throwable instead of Exception.
This commit is contained in:
parent
5da39140df
commit
3ace246cff
@ -174,7 +174,7 @@ public class HttpContent implements Callback, Closeable
|
||||
if (iterator instanceof Closeable)
|
||||
((Closeable)iterator).close();
|
||||
}
|
||||
catch (Exception x)
|
||||
catch (Throwable x)
|
||||
{
|
||||
LOG.ignore(x);
|
||||
}
|
||||
|
@ -489,7 +489,7 @@ public class HttpRequest implements Request
|
||||
listener.onContent(response, content);
|
||||
callback.succeeded();
|
||||
}
|
||||
catch (Exception x)
|
||||
catch (Throwable x)
|
||||
{
|
||||
callback.failed(x);
|
||||
}
|
||||
|
@ -643,8 +643,7 @@ public abstract class HttpSender implements AsyncContentProvider.Listener
|
||||
content.succeeded();
|
||||
process();
|
||||
}
|
||||
// Catch-all for runtime exceptions
|
||||
catch (Exception x)
|
||||
catch (Throwable x)
|
||||
{
|
||||
anyToFailure(x);
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ public interface Response
|
||||
onContent(response, content);
|
||||
callback.succeeded();
|
||||
}
|
||||
catch (Exception x)
|
||||
catch (Throwable x)
|
||||
{
|
||||
callback.failed(x);
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ public class HttpSenderOverHTTP extends HttpSender
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception x)
|
||||
catch (Throwable x)
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug(x);
|
||||
|
@ -131,7 +131,7 @@ public class PathContentProvider extends AbstractTypedContentProvider
|
||||
close();
|
||||
throw x;
|
||||
}
|
||||
catch (Exception x)
|
||||
catch (Throwable x)
|
||||
{
|
||||
close();
|
||||
throw (NoSuchElementException)new NoSuchElementException().initCause(x);
|
||||
@ -152,7 +152,7 @@ public class PathContentProvider extends AbstractTypedContentProvider
|
||||
if (channel != null)
|
||||
channel.close();
|
||||
}
|
||||
catch (Exception x)
|
||||
catch (Throwable x)
|
||||
{
|
||||
LOG.ignore(x);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user