#NEWLINE# def wrap_wsme_controller_exception( func ) : #NEWLINE# #INDENT# 'This decorator wraps wsme controllers to handle exceptions.' #NEWLINE# def _func_server_error( log_correlation_id , status_code ) : #NEWLINE# #INDENT# raise wsme . exc . ClientSideError ( six . text_type ( ( OBFUSCATED_MSG % log_correlation_id ) ) , status_code ) #NEWLINE# #UNINDENT# def _func_client_error( excp , status_code ) : #NEWLINE# #INDENT# raise wsme . exc . ClientSideError ( six . text_type ( excp ) , status_code ) #NEWLINE# #UNINDENT# return wrap_controller_exception ( func , _func_server_error , _func_server_error )