How to Know What Exception a Method Will Raise?

How is one supposed to know what exception (if any) a method will
raise? The docs for all of the core Ruby classes I’ve seen fail to
mention this.

El Jueves, 3 de Septiembre de 2009, MaggotChild
escribió:> How is one supposed to know what exception (if any) a method will

raise? The docs for all of the core Ruby classes I’ve seen fail to
mention this.

Each method should explain in the doc which exception could generate and
in
which cases.