Top Description Fields Constructors Methods
io.grpc

public Class StatusRuntimeException

extends RuntimeException
Class Inheritance
Imports
javax.annotation.Nullable

Status in RuntimeException form, for propagating Status information via exceptions.
See Also
StatusException

Field Summary

Modifier and TypeField and Description
private final boolean
private static final long
private final Status
private final Metadata

Constructor Summary

AccessConstructor and Description
public
StatusRuntimeException(Status status)

Constructs the exception with both a status.

public
StatusRuntimeException(Status status, Metadata trailers)

Constructs the exception with both a status and trailers.

pack-priv
StatusRuntimeException(Status status, Metadata trailers, boolean fillInStackTrace)

Method Summary

Modifier and TypeMethod and Description
public synchronized Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.
public final Status
getStatus()

Returns the status code as a Status object.

public final Metadata
getTrailers()

Returns the received trailers.

Field Detail

fillInStackTraceback to summary
private final boolean fillInStackTrace
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

statusback to summary
private final Status status
trailersback to summary
private final Metadata trailers

Constructor Detail

StatusRuntimeExceptionback to summary
public StatusRuntimeException(Status status)

Constructs the exception with both a status. See also Status#asRuntimeException().

Since
1.0.0
StatusRuntimeExceptionback to summary
public StatusRuntimeException(Status status, Metadata trailers)

Constructs the exception with both a status and trailers. See also Status#asRuntimeException(Metadata).

Since
1.0.0
StatusRuntimeExceptionback to summary
pack-priv StatusRuntimeException(Status status, Metadata trailers, boolean fillInStackTrace)

Method Detail

fillInStackTraceback to summary
public synchronized Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override
getStatusback to summary
public final Status getStatus()

Returns the status code as a Status object.

Since
1.0.0
getTrailersback to summary
public final Metadata getTrailers()

Returns the received trailers.

Annotations
@Nullable
Since
1.0.0