| 39 | |
| 40 | # Error thrown when the RPC call returns an error. |
| 41 | class RPCError (Exception): |
| 42 | error = None |
| 43 | |
| 44 | def __init__ (self, data): |
| 45 | self.error = data |
| 46 | |
| 47 | def __str__(self): |
| 48 | return '{0}: {1}'.format(type(self).__name__, self.error) |
| 49 | |
| 50 | # This class handles the Namecoin identity integration. |
| 51 | class namecoinConnection (object): |