Sha256: cb0e0428cc2e33430762d4c855aeec33215ddb005fc4e739035bb773799f35c5

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 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
    else
      message = 'Steppy Failed!'
    end

    super(message)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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