File: errors.rb

package info (click to toggle)
ruby-benchmark-memory 0.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: ruby: 1,121; makefile: 7; sh: 4
file content (13 lines) | stat: -rw-r--r-- 268 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Benchmark
  module Memory
    Error = Class.new(StandardError)

    ConfigurationError = Class.new(Error) do
      def message
        'You did not give a test block to your call to `Benchmark.memory`'
      end
    end
  end
end