@ Nullable public static BlockscoreError getBlockscoreError ( @ NotNull final RetrofitError cause ) { Object rawError = cause . getBodyAs ( BlockscoreError . class ) ; if ( rawError instanceof BlockscoreError ) { return ( BlockscoreError ) rawError ; } else { return null ; } }
Converts a Retrofit Error into a Blockscore Error .