Hey all, can anyone explain why is `Pulumi.RunExce...
# dotnet
a
Hey all, can anyone explain why is
Pulumi.RunException
an
internal
class? I'm trying to have some unit tests made, that test error handling / validation scenarios, however it's not possible to use FluentAssertions'
.Should().Throw<Pulumi.RunException>()
due to the access modifier.
Copy code
internal class RunException : Exception
{
  public RunException(string message)
            : base(message)
  {
  }

  public RunException(string message, Exception? innerException)
            : base(message, innerException)
  {
  }

  public static RunException OutputsHaveIncorrectType(IEnumerable<string> outputAttributeNames)
  {
    var message = $"Output(s) '{string.Join(", ", outputAttributeNames)}' have incorrect type. [Output] attributed properties must be instances of Output<T>.";
    return new RunException(message);
  }
}
Can anyone explain the rationale behind this decision?
f