Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
raised if a deserializer couldn't deserialize a payload

stores the payload inside a ``payload`` attribute and the error message
inside a ``reason`` attribute.

src/p/y/pyogp.lib.base-0.1/pyogp/lib/base/helpers.py   pyogp.lib.base(Download)
 
# pyogp
from pyogp.lib.base.exc import DataParsingError, DeserializationFailed
 
# initialize loggin
            r = llsd.parse(data)
        except llsd.LLSDParseError, e:
            raise DeserializationFailed(data, str(e))
        if r==False:
            raise DeserializationFailed(data, 'result was False')