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 = "    Could not find Cargo package metadata for \#{@name.inspect}. Please\n    check that \#{@name.inspect} matches the crate name in your\n    Cargo.toml.\"\n  MSG\n\n  super(msg)\nend\n".chomp.tr("\n", " ")