io.vertx.core.impl.NoStackTraceThrowable Java Examples
The following examples show how to use
io.vertx.core.impl.NoStackTraceThrowable.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VertxLoggingTest.java From quarkus with Apache License 2.0 | 5 votes |
public void info() { LOGGER.info("Info"); LOGGER.info("Info with exception", new NoStackTraceThrowable("boom")); LOGGER.info("Info with parameters {0} {1}", "Quarkus", 1); LOGGER.info("Info with exception and param {0}", new NoStackTraceThrowable("boom"), "quarkus"); LOGGER.info("Info with exception as last param {0}", "quarkus", new NoStackTraceThrowable("boom")); LOGGER.info("Info with null as failure", (Throwable) null); LOGGER.info("Info with null as parameter {0}", (String) null); // Null message -> NULL LOGGER.info(null); }
Example #2
Source File: PredicateInterceptor.java From vertx-web with Apache License 2.0 | 5 votes |
private void failOnPredicate(HttpContext<?> ctx, ErrorConverter converter, ResponsePredicateResultImpl predicateResult) { Throwable result; try { result = converter.apply(predicateResult); } catch (Exception e) { result = e; } if (result != null) { ctx.fail(result); } else { ctx.fail(new NoStackTraceThrowable("Invalid HTTP response")); } }
Example #3
Source File: CommandResponse.java From vertx-sql-client with Apache License 2.0 | 4 votes |
public static <R> CommandResponse<R> failure(String msg) { return failure(new NoStackTraceThrowable(msg)); }
Example #4
Source File: SMTPInitialDialogue.java From vertx-mail-client with Apache License 2.0 | 4 votes |
private void handleError(String message) { log.debug("handleError:" + message); errorHandler.handle(new NoStackTraceThrowable(message)); }
Example #5
Source File: SMTPAuthentication.java From vertx-mail-client with Apache License 2.0 | 4 votes |
private void handleError(String message) { errorHandler.handle(new NoStackTraceThrowable(message)); }
Example #6
Source File: SMTPConnection.java From vertx-mail-client with Apache License 2.0 | 4 votes |
private void handleError(String message) { handleError(new NoStackTraceThrowable(message)); }
Example #7
Source File: GraphQLHandlerImpl.java From vertx-web with Apache License 2.0 | 4 votes |
private void failQueryMissing(RoutingContext rc) { rc.fail(400, new NoStackTraceThrowable("Query is missing")); }