Raise exception when call new of Shape class from ruby.