All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.circuitbreaker.TimeoutException Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR5
Show newest version
package io.vertx.circuitbreaker;

/**
 * Exception reported when the monitored operation timed out.
 * 

* For performance reason, this exception does not carry a stack trace. You are not allowed to set a stack trace or a * cause to this exception. This immutability allows using a singleton instance. * * @author Clement Escoffier */ public class TimeoutException extends RuntimeException { public static TimeoutException INSTANCE = new TimeoutException(); private TimeoutException() { super("operation timeout", null, false, false); } @Override public void setStackTrace(StackTraceElement[] stackTrace) { throw new UnsupportedOperationException(); } @Override public synchronized Throwable initCause(Throwable cause) { throw new UnsupportedOperationException(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy