Sha256: 600ccb235c595420ea75e3bb51ca8e771bfe3c630618b8da47f2aeda8ec7e4d8

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

module CiteProc

  class Error < StandardError
    attr_reader :original

    def initialize(message, original = nil)
      @original = original ? super([message, original.message].join(': ')) : super(message)
    end    
  end
  
  class EngineError < Error; end
  
  class NotImplementedByEngine < EngineError; end
  
  class ArgumentError < Error; end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citeproc-0.0.2 lib/citeproc/errors.rb