method

new

ruby latest stable - Class: Exception
new(p1 = v1)
public

Construct a new Exception object, optionally passing in a message.