@@ -792,7 +792,7 @@ default long getRequestLength() {
792792 try {
793793 return parser (contentType ).parse (this , type .getType ());
794794 } catch (Exception x ) {
795- throw Sneaky .propagate (x );
795+ throw SneakyThrows .propagate (x );
796796 }
797797 }
798798
@@ -819,7 +819,7 @@ default long getRequestLength() {
819819 try {
820820 return parser (contentType ).parse (this , type );
821821 } catch (Exception x ) {
822- throw Sneaky .propagate (x );
822+ throw SneakyThrows .propagate (x );
823823 }
824824 }
825825
@@ -1069,7 +1069,7 @@ default long getRequestLength() {
10691069 send (bytes );
10701070 return this ;
10711071 } catch (Exception x ) {
1072- throw Sneaky .propagate (x );
1072+ throw SneakyThrows .propagate (x );
10731073 }
10741074 }
10751075
@@ -1100,7 +1100,7 @@ default long getRequestLength() {
11001100 * @throws Exception Is something goes wrong.
11011101 */
11021102 default @ Nonnull Context responseStream (@ Nonnull MediaType contentType ,
1103- @ Nonnull Sneaky .Consumer <OutputStream > consumer ) throws Exception {
1103+ @ Nonnull SneakyThrows .Consumer <OutputStream > consumer ) throws Exception {
11041104 setResponseType (contentType );
11051105 return responseStream (consumer );
11061106 }
@@ -1112,7 +1112,7 @@ default long getRequestLength() {
11121112 * @return HTTP channel as output stream. Usually for chunked responses.
11131113 * @throws Exception Is something goes wrong.
11141114 */
1115- default @ Nonnull Context responseStream (@ Nonnull Sneaky .Consumer <OutputStream > consumer )
1115+ default @ Nonnull Context responseStream (@ Nonnull SneakyThrows .Consumer <OutputStream > consumer )
11161116 throws Exception {
11171117 try (OutputStream out = responseStream ()) {
11181118 consumer .accept (out );
@@ -1162,7 +1162,7 @@ default long getRequestLength() {
11621162 * @return This context.
11631163 * @throws Exception Is something goes wrong.
11641164 */
1165- default @ Nonnull Context responseWriter (@ Nonnull Sneaky .Consumer <PrintWriter > consumer )
1165+ default @ Nonnull Context responseWriter (@ Nonnull SneakyThrows .Consumer <PrintWriter > consumer )
11661166 throws Exception {
11671167 return responseWriter (MediaType .text , consumer );
11681168 }
@@ -1176,7 +1176,7 @@ default long getRequestLength() {
11761176 * @throws Exception Is something goes wrong.
11771177 */
11781178 default @ Nonnull Context responseWriter (@ Nonnull MediaType contentType ,
1179- @ Nonnull Sneaky .Consumer <PrintWriter > consumer ) throws Exception {
1179+ @ Nonnull SneakyThrows .Consumer <PrintWriter > consumer ) throws Exception {
11801180 return responseWriter (contentType , contentType .getCharset (), consumer );
11811181 }
11821182
@@ -1190,7 +1190,7 @@ default long getRequestLength() {
11901190 * @throws Exception Is something goes wrong.
11911191 */
11921192 default @ Nonnull Context responseWriter (@ Nonnull MediaType contentType , @ Nullable Charset charset ,
1193- @ Nonnull Sneaky .Consumer <PrintWriter > consumer ) throws Exception {
1193+ @ Nonnull SneakyThrows .Consumer <PrintWriter > consumer ) throws Exception {
11941194 try (PrintWriter writer = responseWriter (contentType , charset )) {
11951195 consumer .accept (writer );
11961196 }
@@ -1313,7 +1313,7 @@ default long getRequestLength() {
13131313 setDefaultResponseType (MediaType .byFile (file ));
13141314 return send (FileChannel .open (file ));
13151315 } catch (IOException x ) {
1316- throw Sneaky .propagate (x );
1316+ throw SneakyThrows .propagate (x );
13171317 }
13181318 }
13191319
@@ -1360,8 +1360,8 @@ default long getRequestLength() {
13601360 .error ("error handler resulted in exception {} {}" , getMethod (), pathString (), x );
13611361 }
13621362 /** rethrow fatal exceptions: */
1363- if (Sneaky .isFatal (cause )) {
1364- throw Sneaky .propagate (cause );
1363+ if (SneakyThrows .isFatal (cause )) {
1364+ throw SneakyThrows .propagate (cause );
13651365 }
13661366 return this ;
13671367 }
0 commit comments