[Twisted-Python] Getting error code

Sorin C. soso_pub at yahoo.com
Thu May 13 14:18:07 EDT 2004


Is there a way to extract the error code from a
Failure instance? For example when
clientConnectionFailed is called the 'value' field of
the Failure instance is 'Connection was refused by
other side: 10061: Unknown error.'. Can I get 10061
somehow as I don't feel safe  parsing this string.


Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'

More information about the Twisted-Python mailing list