class Gem::Package::FormatError - Documentation for Ruby 4.0
Description: Documentation for the Gem::Package::FormatError class
Keywords: ruby,class,Gem::Package::FormatError

🔍

No recent searches

# class Gem::Package::FormatError

### Attributes

path [R]

### Public Class Methods

new (message, source = nil)
Source

    # File lib/rubygems/package.rb, line 60
    def initialize(message, source = nil)
      if source
        @path = source.is_a?(String) ? source : source.path

        message += " in #{path}" if path
      end

      super message
    end

Calls superclass method `Exception::new`