Package com.shri.restinpeace.exception
package com.shri.restinpeace.exception
-
ExceptionsClassDescriptionThrown instead of making a call when its client's
bulkheadhas no free permit (and, ifBulkheadConfig.getMaxWaitDurationMillis()is set, none freed up within that wait either) - too many calls to this client are already in flight.Thrown instead of making a call when its client'scircuit breakeris open - the downstream has recently shown a high enough failure rate that this call is refused immediately, without attempting the network call (or even a cache lookup), rather than paying the cost of finding out it would have failed too.Unchecked exception thrown for any REST-in-peace runtime error - a@RestClientinterface missing@RestClientor failing validation (seeRestInPeaceValidationExceptionfor the underlying validation errors), a missing required parameter value, or an unsupported HTTP method/annotation combination.Unchecked exception thrown when a@RestClientmethod's response has a non-2xx HTTP status - the request reached the server and got a response, it's just not a success.Checked exception thrown byReflectiveRestClientValidator.validate(Class)when a@RestClientinterface fails validation.