Sha256: 41ed8e7e3dd5075507e5ac0582e2e54786417385a7b4e779453c18eb556c5be8

Contents?: true

Size: 381 Bytes

Versions: 8

Compression:

Stored size: 381 Bytes

Contents

module Vmstator

  # VmstatError handles the custom error handling for this Gem
  #
  # == Example
  #
  #  # Typical use case
  #  raise VmstatError("This is a custom error!")
  #
  class VmstatError < StandardError
    attr_reader :problem
    def initialize(problem="Vmstat eems to have encountered a problem.")
      @problem = problem
      super(@problem)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vmstator-2.1.0 lib/vmstator/errors.rb
vmstator-2.0.4 lib/vmstator/errors.rb
vmstator-2.0.3 lib/vmstator/errors.rb
vmstator-2.0.2 lib/vmstator/errors.rb
vmstator-2.0.1 lib/vmstator/errors.rb
vmstator-2.0.0 lib/vmstator/errors.rb
vmstator-1.0.1 lib/vmstator/errors.rb
vmstator-1.0.0 lib/vmstator/errors.rb