public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> error(
            int resourceId) {
        this.errorId = resourceId;

        return this;
    }
Sets a resource to display if a load fails.

@param resourceId The id of the resource to use as a placeholder.
@return This request builder.
core/src/main/java/com/bumptech/glide/GenericRequestBuilder.java