Sha256: a07e38cd8c85f8220d45f4de0e9e45472a4a070154d733ec073b59689a168d2b

Contents?: true

Size: 274 Bytes

Versions: 3

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

require 'commonmarker/node/inspect'

module CommonMarker
  class RenderError < StandardError
    PREAMBLE = 'There was an error rendering'
    def initialize(error)
      super("#{PREAMBLE}: #{error.class} #{error.message}")
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
commonmarker-0.23.4 lib/commonmarker/errors.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/commonmarker-0.23.2/lib/commonmarker/errors.rb
commonmarker-0.23.2 lib/commonmarker/errors.rb