/** * Create an {@link AssertionError} with {@link Latency}, thread name and message. * * @param latency The latency for this exception. * @param message The message associated with this exception. */ protected ReactiveAuditException(Latency latency, String message) { super(message); this.threadName = Thread.currentThread().getName(); this.latency = latency; updateStackTraceElements(); }
/** * Create an {@link AssertionError} with {@link Latency}, thread name and message. * * @param latency The latency for this exception. * @param message The message associated with this exception. */ protected ReactiveAuditException(Latency latency, String message) { super(message); this.threadName = Thread.currentThread().getName(); this.latency = latency; updateStackTraceElements(); }
/** * Create an {@link AssertionError} with {@link Latency}, thread name and formatted message. * * @param latency The latency for this exception. * @param format The format message associated with this exception. * @param args The arguments to generate the message with the format. */ protected ReactiveAuditException(Latency latency, String format, Object... args) { super(String.format(format, args)); this.threadName = Thread.currentThread().getName(); updateStackTraceElements(); }
/** * Create an {@link AssertionError} with {@link Latency}, thread name and formatted message. * * @param latency The latency for this exception. * @param format The format message associated with this exception. * @param args The arguments to generate the message with the format. */ protected ReactiveAuditException(Latency latency, String format, Object... args) { super(String.format(format, args)); this.threadName = Thread.currentThread().getName(); updateStackTraceElements(); }