public class ServiceUnavailableException extends StateServerException
StateServerException specialization that indicates that a call failed because the
client was unable to connect to the local StateServer.| Constructor and Description |
|---|
ServiceUnavailableException(StatusCodes statusCode) |
ServiceUnavailableException(StatusCodes statusCode,
java.lang.String message) |
ServiceUnavailableException(StatusCodes statusCode,
java.lang.String message,
java.lang.Throwable cause) |
ServiceUnavailableException(StatusCodes statusCode,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
StateServerException |
reWrap(StateServerException e)
Rewrap existing an StateServerException with a new one if the thread the initial
exception was generated on is different from the current thread.
|
getCreatedOnThread, getStatusCodepublic ServiceUnavailableException(StatusCodes statusCode,
java.lang.String message,
java.lang.Throwable cause)
public ServiceUnavailableException(StatusCodes statusCode,
java.lang.String message)
public ServiceUnavailableException(StatusCodes statusCode,
java.lang.Throwable cause)
public ServiceUnavailableException(StatusCodes statusCode)
public StateServerException reWrap(StateServerException e)
StateServerExceptionRewrap existing an StateServerException with a new one if the thread the initial exception was generated on is different from the current thread.
The exception stack trace stops at the initial method of the current thread. If this exception came from a different thread, we won't see the call stack that initiated the request. So, we rethrow the same exception with the same message and status, nesting the original exception within so that we can see a full stack trace.reWrap in interface ReWrappableException<StateServerException>reWrap in class StateServerExceptione - the original StateServerException