How to use the jwplatform.errors.JWPlatformDatabaseError 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': 'PermissionDenied',
            'title': 'Permission Denied',
            'message': ''
        },
        'expected_exception': jwplatform.errors.JWPlatformPermissionDeniedError
    },
    {
        'http_status': 500,
        'response': {
            'status': 'error',
            'code': 'DatabaseError',
            'title': 'Database Error',
            'message': ''
        },
        'expected_exception': jwplatform.errors.JWPlatformDatabaseError
    },
    {
        'http_status': 500,
        'response': {
            'status': 'error',
            'code': 'IntegrityError',
            'title': 'Integrity Error',
            'message': ''
        },
        'expected_exception': jwplatform.errors.JWPlatformIntegrityError
    },
    {
        'http_status': 400,
        'response': {
            'status': 'error',
            'code': 'DigestMissing',