public class BatchPublishException
extends java.lang.Exception
| Constructor and Description |
|---|
BatchPublishException(@NonNull java.lang.String batchId,
@NonNull io.nats.client.JetStreamApiException cause) |
BatchPublishException(@NonNull java.lang.String batchId,
@NonNull java.lang.String message) |
BatchPublishException(@NonNull java.lang.String batchId,
@NonNull java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getApiErrorCode()
Get the error code from the response if the exception is a JetStreamApiException
otherwise will be -1
|
@NonNull java.lang.String |
getBatchId() |
int |
getErrorCode()
Get the error code from the response if the exception is a JetStreamApiException
otherwise will be -1
|
@Nullable java.lang.String |
getErrorDescription()
Get the description from the response if the exception is a JetStreamApiException
otherwise will be null
|
@Nullable io.nats.client.JetStreamApiException |
getJsApiException() |
java.lang.String |
getMessage() |
public BatchPublishException(@NonNull java.lang.String batchId,
@NonNull java.lang.String message)
public BatchPublishException(@NonNull java.lang.String batchId,
@NonNull io.nats.client.JetStreamApiException cause)
public BatchPublishException(@NonNull java.lang.String batchId,
@NonNull java.lang.Throwable cause)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic @NonNull java.lang.String getBatchId()
public @Nullable io.nats.client.JetStreamApiException getJsApiException()
public int getErrorCode()
public int getApiErrorCode()
public @Nullable java.lang.String getErrorDescription()