Houdini 20.5 hapi

hapi.getConnectionError function

Return the connection error message.

You MUST call hapi.getConnectionErrorLength before calling this to get the correct string length.

Only available when using Thrift connections.

Usage

getConnectionError(length: int, clear: bool) → str

Return the connection error message.

length

Length of the string buffer (must match size of string_value - so including None terminator). Use hapi.getConnectionErrorLength to get this length.

clear

If true, will clear the error when hapi.result.Success is returned.

Returns string_value as a str.

hapi