src/main/java/com/blockscore/models/error/BlockscoreError.java
@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;
    }
  }
@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.

@param cause  the Retrofit error to convert
@return the Blockscore Error