Method | Arguments | Return | Throws Exception |
Aw::Admin | ( $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.
| void | NO |
err | ( ) Returns global err code. | Boolean | YES |
errmsg | ( ) Returns global err message. | String | YES |
error | ( ) Returns global err object. | Aw::Error | NO |
getWarn | ( ) Returns current global warn level . | Number | NO |
setDefaultBroker | ( $broker, $host ) ( '$broker@$host' )
Sets the default broker and host may be set for the Aw::Client module. | void | NO |
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. | void | NO |
setWarnAll | ( boolean ) Turn On/Off automatic warning when errors are encountered (printed to stderr). | void | NO |
warn | ( [string] ) Warn message is string if passed, otherwise current global err is converted to string. | void | YES |
Debugging Methods |
hello | ( ) Returns the string "hello". Useful for debugging. | String | NO |
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::Admin module functions. |