Sha256: 31f35568aabaabc151536e5c7986374e7daf87164fa6fff8ba9ddf3feda12d55

Contents?: true

Size: 394 Bytes

Versions: 8

Compression:

Stored size: 394 Bytes

Contents

module RestDSL
  class ErrorBase < StandardError
    def initialize(message)
      message = "[RestDSL] #{message}"
      super(message)
    end
  end
  class UndefinedEnvironmentError < ErrorBase
    def initialize(environment, available_envs)
      message = "Undefined environment, #{environment}, known environments: #{available_envs.keys.join(', ')}"
      super(message)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rest_dsl-0.1.9 lib/rest_dsl/errors.rb
rest_dsl-0.1.7 lib/rest_dsl/errors.rb
rest_dsl-0.1.5 lib/rest_dsl/errors.rb
rest_dsl-0.1.4 lib/rest_dsl/errors.rb
rest_dsl-0.1.3 lib/rest_dsl/errors.rb
rest_dsl-0.1.2 lib/rest_dsl/errors.rb
rest_dsl-0.1.1 lib/rest_dsl/errors.rb
rest_dsl-0.1.0 lib/rest_dsl/errors.rb