<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_exception(func):
 """ Run a function when a handler thows an exception. It's return value is returned to AWS. Usage:: it broke! {'statusCode': 500, 'body': 'uh oh'} {'statusCode': 500} """

    class OnExceptionDecorator(LambdaDecorator):
        def on_exception(self, exception):
            return func(exception)

    return OnExceptionDecorator