Sha256: 1ef56151bf5c213b2005b08b236f897a479997557612a6bac55f12a303a3c78a

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Paquito
  Error = Class.new(StandardError)

  class PackError < Error
    attr_reader :receiver
    def initialize(msg, receiver = nil)
      super(msg)
      @receiver = receiver
    end
  end

  UnpackError = Class.new(Error)
  ClassMissingError = Class.new(Error)
  UnsupportedType = Class.new(Error)
  UnsupportedCodec = Class.new(Error)
  VersionMismatchError = Class.new(Error)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paquito-0.1.0 lib/paquito/errors.rb