original_docstring: 
          Callback when sending order caused exception.
          
docstring: Callback when sending order caused exception.
docstring_tokens: Callback when sending order caused exception .
code: def on_send_order_error(
          self, exception_type: type, exception_value: Exception, tb, request: Request
      ):
          """
          Callback when sending order caused exception.
          """
          order = request.extra
          order.status = Status.REJECTED
          self.gateway.on_order(order)
  
          # Record exception if not ConnectionError
          if not issubclass(exception_type, ConnectionError):
              self.on_error(exception_type, exception_value, tb, request)
code_tokens: def on_send_order_error ( self , exception_type : type , exception_value : Exception , tb , request : Request ) : order = request . extra order . status = Status . REJECTED self . gateway . on_order ( order ) if not issubclass ( exception_type , ConnectionError ) : self . on_error ( exception_type , exception_value , tb , request )
short_docstring: Callback when sending order caused exception.
short_docstring_tokens: Callback when sending order caused exception .
comment: """
          Callback when sending order caused exception.
          """$SEP$# Record exception if not ConnectionError