Exception: RbSys::PackageNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/rb_sys/error.rb

Overview

Raised when a package is not found from the Cargo metadata.

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ PackageNotFoundError

Returns a new instance of PackageNotFoundError.



9
10
11
12
13
14
15
16
17
# File 'lib/rb_sys/error.rb', line 9

def initialize(name)
  msg = <<~MSG.chomp.tr("\n", " ")
    Could not find Cargo package metadata for #{name.inspect}. Please
    check that #{name.inspect} matches the crate name in your
    Cargo.toml."
  MSG

  super(msg)
end