MCPcopy
hub / github.com/ycm-core/YouCompleteMe / MakeServerException

Function MakeServerException

python/ycm/client/base_request.py:330–336  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

328
329
330def MakeServerException( data ):
331 _logger.debug( 'Server exception: %s', data )
332 if data[ 'exception' ][ 'TYPE' ] == UnknownExtraConf.__name__:
333 return UnknownExtraConf( data[ 'exception' ][ 'extra_conf_file' ] )
334
335 return ServerError( f'{ data[ "exception" ][ "TYPE" ] }: '
336 f'{ data[ "message" ] }' )

Callers 6

ResponseMethod · 0.90
ResponseMethod · 0.90
ResponseMethod · 0.90
_ResponseMethod · 0.90
_RawResponseMethod · 0.90
_JsonFromFutureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected