# Aw::Error

Method | Arguments | Return | Throws Exception
--- | --- | --- | ---
new | ( ) | Aw::Error | NO
DESTROY | ( ) | void | NO
delete | ( ) | void | NO
getCode | ( ) | Number | NO
getDiagnostics | ( ) | Number | NO
getMinorCode | ( ) | Number | NO
last | ( ) | Aw::Error | NO
setCurrent | ( [ error ] ) Sets current error to (Aw::Error) `error` if passed (which replaces $self->err), otherwise sets with $self->err value. | void | NO
setDiagnostics | ( diag ) | void | NO
toCompleteString | ( [ error ] ) Reports complete error string for (Aw::Error) `error` if passed, otherwise applies the $self->err value. | String | NO
toString | ( ) | String | NO
Inherited Methods
err | ( ) | Boolean | YES
errmsg | ( ) | String | YES
error | ( ) | Aw::Error | NO
hello | ( ) Returns the string "hello". Useful for debugging. | String | NO
getWarn | ( ) Returns current warn `level`. | Number | NO
setWarn | ( level ) Sets new 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
warn | ( [string] ) Warn message is `string` if passed, otherwise current err is converted to string. | void | YES