log message when throw CommonErrors::invalid_parameter