public static Exceptions.StorageException toStorageException(Status rpcStatus, Throwable exception)
Converts a c.g.rpc.Status into a StorageException, if possible. Examines the embedded
StorageError, and potentially returns a StreamFinalizedException or SchemaMismatchedException (both derive from StorageException). If there is no StorageError, or
the StorageError is a different error it will return NULL.
public static Exceptions.StorageException toStorageException(Throwable exception)
Converts a Throwable into a StorageException, if possible. Examines the embedded error message,
and potentially returns a StreamFinalizedException or SchemaMismatchedException
(both derive from StorageException). If there is no StorageError, or the StorageError is a
different error it will return NULL.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-02 UTC."],[],[]]