// Copyright 2016-2019, Pulumi Corporation using System; namespace Pulumi { /// /// ResourceException can be used for terminating a program abruptly, specifically associating the /// problem with a Resource.Depending on the nature of the problem, clients can choose whether /// or not a call stack should be returned as well. This should be very rare, and would only /// indicate no usefulness of presenting that stack to the user. /// public class ResourceException : Exception { internal readonly Resource? Resource; internal readonly bool HideStack; public ResourceException(string message, Resource? resource, bool hideStack = false) : base(message) { this.Resource = resource; this.HideStack = hideStack; } } }