added conditional operator
removed unused ERROR_NO_FUNCTION_PARAMETER
added getErrorMessage function