Exception: MsPac::Error::MissingPellet

Inherits:
MsPac::Error
  • Object
show all
Defined in:
lib/mspac/error/missing_pellet.rb

Instance Method Summary collapse

Constructor Details

#initialize(pellet = nil) ⇒ MissingPellet

Returns a new instance of MissingPellet.



2
3
4
5
6
7
8
# File 'lib/mspac/error/missing_pellet.rb', line 2

def initialize(pellet = nil)
    if (pellet)
        super("Pellet not found: #{pellet}")
    else
        super("No pellets specified")
    end
end