Substitute raise Exception for an assert. More convenient when checking parameter validity.
Substitute raise Exception for an assert. More convenient when checking parameter validity.

check as well that both parameters are present.

mesheven/pyOCD,wjzhang/pyOCD,bridadan/pyOCD,mbedmicro/pyOCD,bridadan/pyOCD,tgarc/pyOCD,tgarc/pyOCD,bridadan/pyOCD,pyocd/pyOCD,pyocd/pyOCD,0xc0170/pyOCD,0xc0170/pyOCD,wjzhang/pyOCD,0xc0170/pyOCD,mesheven/pyOCD,wjzhang/pyOCD,matthewelse/pyOCD,mbedmicro/pyOCD,mbedmicro/pyOCD,matthewelse/pyOCD,matthewelse/pyOCD,tgarc/pyOCD,flit/pyOCD,mesheven/pyOCD,flit/pyOCD