Sha256: 135e90a65a2ea89671be575ecb7b1187684bad8733489049d2d0d842f893a706

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

module Miu
  class Error < StandardError
  end

  class WrappedError < Error
    attr_accessor :error
    
    def initialize(error)
      @error = error
      super "#{@error.class}: #{@error.to_s}"
    end
  end

  class InvalidTypeError < Error
  end

  class PacketLoadError < WrappedError
  end

  class MessageLoadError < WrappedError
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miu-0.2.3 lib/miu/errors.rb
miu-0.2.2 lib/miu/errors.rb
miu-0.2.1 lib/miu/errors.rb
miu-0.2.0 lib/miu/errors.rb