Change InvalidOperationException to PSInvalidOperationException because monad code looks only for PS version to rethrow MissingMandatoryParameter exception.

This commit is contained in:
George Fleming 2016-04-15 10:56:22 -07:00
parent 4c1ee1c589
commit 969dc932ec

View file

@ -82,7 +82,7 @@ namespace Microsoft.PowerShell.CoreConsoleHost
}
else
{
throw new InvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
throw new PSInvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
}
}
@ -162,7 +162,7 @@ namespace Microsoft.PowerShell.CoreConsoleHost
}
else
{
throw new InvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
throw new PSInvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
}
}
@ -273,7 +273,7 @@ namespace Microsoft.PowerShell.CoreConsoleHost
}
else
{
throw new InvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
throw new PSInvalidOperationException("Cannot prompt user when invoked with --noninteractive option.");
}
}