Sha256: 3a94e307c14330189f3ef07d5ec321c340f4f17f25aa6688c9878f5ede538476

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

# Incase you need to throw an error related to steppy
class SteppyError < StandardError
  attr_reader :step
  # rubocop:disable Airbnb/OptArgParameters
  def initialize(step = nil)
    # rubocop:enable Airbnb/OptArgParameters
    if step
      @step = step
      message = step.to_json
    end

    super(message)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
steppy-0.6.0 lib/steppy/error.rb