Package org.hyperledger.fabric.client
Class GatewayException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.hyperledger.fabric.client.GatewayException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TransactionException
Thrown if an error is encountered while invoking gRPC services on a gateway peer. Since the gateway delegates much
of the processing to other nodes (endorsing peers and orderers), then the error could have originated from one or
more of those nodes. In that case, the details will contain errors information from those nodes.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new exception with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionList
<org.hyperledger.fabric.protos.gateway.ErrorDetail> Get the gRPC error details returned by a gRPC invocation failure.Returns the status code as a gRPC Status object.void
This implementation appends any gRPC error details to the stack trace.void
This implementation appends any gRPC error details to the stack trace.void
This implementation appends any gRPC error details to the stack trace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
GatewayException
Constructs a new exception with the specified cause.- Parameters:
cause
- the cause.
-
-
Method Details
-
getStatus
Returns the status code as a gRPC Status object.- Returns:
- gRPC call status.
-
getDetails
Get the gRPC error details returned by a gRPC invocation failure.- Returns:
- error details.
-
printStackTrace
public void printStackTrace()This implementation appends any gRPC error details to the stack trace.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
This implementation appends any gRPC error details to the stack trace.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
This implementation appends any gRPC error details to the stack trace.- Overrides:
printStackTrace
in classThrowable
-