Watch Aspire live streamsDocsTry Aspire

RadiusBackingResourceProjectionException Constructors

ClassConstructors2 members
Thrown when a Radius backing resource — a cache, database, or queue provisioned by a Radius recipe rather than deployed as a Radius.Compute/containers workload — cannot be projected to its consumers: its address cannot be determined, or the recipe's own connection and credential outputs cannot be described.
Constructor(IResource, string)Section titled Constructor(IResource, string)
Initializes a new instance of the RadiusBackingResourceProjectionException class.
public sealed class RadiusBackingResourceProjectionException
{
public RadiusBackingResourceProjectionException(
IResource resource,
string message)
{
// ...
}
}
resourceIResourceThe backing resource that could not be projected.
messagestringThe message that describes the error.
ArgumentNullExceptionresource is null.
Constructor(IResource, string, Exception?)Section titled Constructor(IResource, string, Exception?)
Initializes a new instance of the RadiusBackingResourceProjectionException class with a reference to the inner exception that is the cause of this exception.
public sealed class RadiusBackingResourceProjectionException
{
public RadiusBackingResourceProjectionException(
IResource resource,
string message,
Exception? innerException)
{
// ...
}
}
resourceIResourceThe backing resource that could not be projected.
messagestringThe message that describes the error.
innerExceptionException?The exception that is the cause of this exception, or null when none.
ArgumentNullExceptionresource is null.
The parameterless and message-only constructors that InvalidOperationException offers are deliberately not exposed: RadiusBackingResourceProjectionException.Resource is part of this type's contract — a caller catching it does so to report which resource failed — and an instance without one could not answer that.