Sha256: 7c4da5fb32483ce4a4efe5327d4c4d48312b50d8e89b00d12ea7cc73295f5cf2

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

require 'version'

# A base class for Error classes in your application.
class Error < StandardError
  
  is_versioned
  
  # The target of the error.
  attr_accessor :target
  
  # @param target The target of the error.
  def initialize(target=nil)
    @target = target
  end
  
  # The String to print.
  # 
  # @return [String]
  def to_s
    @target.to_s
  end
  
end

require 'error/import'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
error-0.0.0 lib/error.rb