Adding getErrorMessage Function,
Fixe canContinue bug,