Queries the last error from the error stack. This error is popped from the error stack after it's queried.
Error code as daiErrorId value.