Sha256: 64bdb5588fc582fc63267f8ae281afc8eeac7f2d67db46a71a63bb39a4539c14
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest_dsl-0.1.10 | lib/rest_dsl/errors.rb |
rest_dsl-0.1.8 | lib/rest_dsl/errors.rb |