Did I find the right examples for you? yes no

All Samples(40)  |  Call(15)  |  Derive(0)  |  Import(25)
A generic 400 or 500 level exception from the Twilio API

:param int status: the HTTP status that was returned for the exception
:param str uri: The URI that caused the exception
:param str msg: A human-readable message for the error
:param int|None code: A Twilio-specific error code for the error. This is
     not available for all errors.

src/s/t/status.balancedpayments.com-HEAD/venv/lib/python2.7/site-packages/twilio/rest/resources/base.py   status.balancedpayments.com(Download)
 
import twilio
from twilio import TwilioException, TwilioRestException
from twilio.rest.resources.imports import parse_qs, httplib2, json
from twilio.rest.resources.util import transform_params, parse_rfc2822_date
            message = resp.content
 
        raise TwilioRestException(resp.status_code, resp.url, message, code)
 
    return resp
 
        if resp.status_code != 201:
            raise TwilioRestException(resp.status,
                                      self.uri, "Resource not created")
 

src/t/w/twilio-python-HEAD/twilio/rest/resources/base.py   twilio-python(Download)
 
import twilio
from twilio import TwilioException, TwilioRestException
from twilio.rest.resources import UNSET_TIMEOUT
from twilio.rest.resources.connection import Connection
            msg = message
 
        raise TwilioRestException(resp.status_code, resp.url, msg, code)
 
    return resp
 
        if resp.status_code not in (200, 201):
            raise TwilioRestException(resp.status_code,
                                      self.uri, "Resource not created")
 

src/t/w/twilio-gae-HEAD/twilio/rest/resources/base.py   twilio-gae(Download)
 
import twilio
from twilio import TwilioException, TwilioRestException
from twilio.rest.resources.imports import parse_qs, httplib2, json
from twilio.rest.resources.util import transform_params
            message = resp.content
 
        raise TwilioRestException(resp.status_code, resp.url, message, code)
 
    return resp
 
        if resp.status_code != 201:
            raise TwilioRestException(resp.status,
                                      self.uri, "Resource not created")
 

src/p/y/python-twilio2-HEAD/twilio/rest/resources.py   python-twilio2(Download)
 
from twilio import TwilioException
from twilio import TwilioRestException
from urllib import urlencode
from urlparse import urlparse
            message = resp.content
 
        raise TwilioRestException(resp.status_code, resp.url, message)
 
    return resp
 
        if resp.status_code != 201:
            raise TwilioRestException(resp.status,
                                      self.uri, "Resource not created")
 

src/p/h/phonefree-twilio-HEAD/twilio/rest/resources.py   phonefree-twilio(Download)
import datetime
import logging
import twilio
from twilio import TwilioException
from twilio import TwilioRestException
            message = resp.content
 
        raise TwilioRestException(resp.status_code, resp.url, message)
 
    return resp
 
        if resp.status_code != 201:
            raise TwilioRestException(resp.status,
                                      self.uri, "Resource not created")
 

src/c/a/calworkshop-HEAD/twilio/rest/resources/base.py   calworkshop(Download)
 
import twilio
from twilio import TwilioException, TwilioRestException
from twilio.rest.resources.imports import parse_qs, httplib2, json
from twilio.rest.resources.util import transform_params
            message = resp.content
 
        raise TwilioRestException(resp.status_code, resp.url, message)
 
    return resp
 
        if resp.status_code != 201:
            raise TwilioRestException(resp.status,
                                      self.uri, "Resource not created")
 

src/h/o/howtos-HEAD/intercom/twilio/rest/resources.py   howtos(Download)
import datetime
import logging
import twilio
from twilio import TwilioException
from twilio import TwilioRestException
            message = resp.content
 
        raise TwilioRestException(resp.status_code, resp.url, message)
 
    return resp
 
        if resp.status_code != 201:
            raise TwilioRestException(resp.status,
                                      self.uri, "Resource not created")
 

src/e/a/earwig-HEAD/plugins/mock_libs/twilio/rest.py   earwig(Download)
from twilio import TwilioRestException
 
 
class FakeRestEndpoint(object):
 
 
        if kwargs.get('to', None) == 'bad':
            raise TwilioRestException("Bad to")
 
        return True

src/s/t/status.balancedpayments.com-HEAD/venv/lib/python2.7/site-packages/twilio/rest/resources/__init__.py   status.balancedpayments.com(Download)
import re
import datetime
import logging
import twilio
from twilio import TwilioException, TwilioRestException

src/t/w/twilio-python-HEAD/twilio/rest/resources/__init__.py   twilio-python(Download)
import twilio
from twilio import TwilioException, TwilioRestException
 
from twilio.rest.resources.imports import (
    parse_qs, json, httplib2

  1 | 2 | 3  Next