Ruby exception handling

shape