code: @NotNull
    public BlockscoreErrorType getErrorType() {
      if (type == null) {
        return BlockscoreErrorType.UNKNOWN;
      } else {
        return BlockscoreErrorType.toEnum(type);
      }
    }
docs: Gets the error type.
  @return the error type