Aw::

MethodArgumentsReturnThrows
Exception
Aw( $broker, $host )
( '$broker@$host' )
When importing the Aw module the default broker and host may be set for the Aw::Client module. The broker and host may be reset at any time with the "setDefaultBroker" method.
voidNO
err( )
Returns global err code.
BooleanYES
errmsg( )
Returns global err message.
StringYES
error( )
Returns global err object.
Aw::ErrorNO
getWarn( )
Returns current global warn level.
NumberNO
setDefaultBroker( $broker, $host )
( '$broker@$host' )
Sets the default broker and host may be set for the Aw::Client module.
voidNO
setWarn( level )
Sets new global warn level.0 : No warnings (quiet mode)
1 : Terse (uses awErrorToString)
2 : Verbose (uses awErrorToCompleteString)
The Aw extensions must be compiled with AWXS_WARNS defined.
voidNO
setWarnAll( boolean )
Turn On/Off automatic warning when errors are encountered (printed to stderr).
voidNO
warn( [string] )
Warn message is string if passed, otherwise current global err is converted to string.
voidYES
Debugging Methods
free( ref )
Decrements passed sv's reference count to 1.
voidNO
hello( )
Returns the string "hello". Useful for debugging.
StringNO
refcnt( ref )
Returns the perl reference count of the passed sv.
NumberNO
showHash( \%hash )
Recursses down a hash and prints elemetns.
voidNO
Within the XS layer global variables are used to set a default "warning" level (which can be reset on a per-object bases) and point to the last BrokerError encountered. These global variables are accessible thru the Aw:: module functions.