Raise exeption API
user_7886995
python
3 years ago
418 B
7
Indexable
@http.route('/test_hello', type='json', auth="user", cors="*")
def test_hello(self):
raise exception.UnprocessableError('aaaa', 'bbbb')
@http.route('/test_hello_2', type='json', auth="user", cors="*")
def test_hello_2(self):
delegate = exception.DelegateException()
delegate.ex = exception.FoundRedirect('aaaa', 'bbbb')
delegate.headers = [('Location', 'https://www.facebook.com/')]
raise delegateEditor is loading...