Errors should descend from a project/gem specific root, say 'Msf::PayloadGenerator::Error' so any error from this code can be easily caught en-mass.