Sha256: 8e3bf4cab9fa797a480a613867797bd507f111d70b969c821e712aedfb3bcfe7

Contents?: true

Size: 336 Bytes

Versions: 5

Compression:

Stored size: 336 Bytes

Contents

module Pricesphere
  class Error < StandardError
      attr_reader :type
      attr_reader :message
      attr_reader :param

      def initialize(type=nil, message=nil, param=nil)
          @message = 'Error: ' + type + ' Message: ' + message
          @message += ' Failed at parameter: ' + param if not param.nil?
      end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pricesphere-0.2.3 lib/pricesphere/error.rb
pricesphere-0.2.2 lib/pricesphere/error.rb
pricesphere-0.2.1 lib/pricesphere/error.rb
pricesphere-0.2.0 lib/pricesphere/error.rb
pricesphere-0.1.0 lib/pricesphere/error.rb