original_docstring: 
          Callback to handler request exception.
          
docstring: Callback to handler request exception.
docstring_tokens: Callback to handler request exception .
code: def on_error(
          self, exception_type: type, exception_value: Exception, tb, request: Request
      ):
          """
          Callback to handler request exception.
          """
          msg = f"触发异常，状态码：{exception_type}，信息：{exception_value}"
          self.gateway.write_log(msg)
  
          sys.stderr.write(
              self.exception_detail(exception_type, exception_value, tb, request)
          )
code_tokens: def on_error ( self , exception_type : type , exception_value : Exception , tb , request : Request ) : msg = f"触发异常，状态码：{exception_type}，信息：{exception_value}" self . gateway . write_log ( msg ) sys . stderr . write ( self . exception_detail ( exception_type , exception_value , tb , request ) )
short_docstring: Callback to handler request exception.
short_docstring_tokens: Callback to handler request exception .
comment: """
          Callback to handler request exception.
          """