How to use the jwplatform.errors.JWPlatformCallFailedError function in jwplatform

To help you get started, we’ve selected a few jwplatform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jwplayer / jwplatform-py / tests / test_errors.py View on Github external
'status': 'error',
            'code': 'NotSupported',
            'title': 'Method or parameter not supported',
            'message': ''
        },
        'expected_exception': jwplatform.errors.JWPlatformNotSupportedError
    },
    {
        'http_status': 500,
        'response': {
            'status': 'error',
            'code': 'CallFailed',
            'title': 'Call Failed',
            'message': ''
        },
        'expected_exception': jwplatform.errors.JWPlatformCallFailedError
    },
    {
        'http_status': 503,
        'response': {
            'status': 'error',
            'code': 'CallUnavailable',
            'title': 'Call Unavailable',
            'message': ''
        },
        'expected_exception': jwplatform.errors.JWPlatformCallUnavailableError
    },
    {
        'http_status': 400,
        'response': {
            'status': 'error',
            'code': 'CallInvalid',