Raising a custom exception when ParameterMissing is not defined