Expose ActionId and ProfileId as public properties in the RecActionException class, allowing external access to these values from exception instances. Refactored the constructor to use a block body.
9 lines
336 B
C#
9 lines
336 B
C#
namespace ReC.Application.Common.Exceptions;
|
|
|
|
public class RecActionException(long actionId, long? profileId, Exception innerException)
|
|
: Exception($"Rec action failed. ActionId: {actionId}, ProfileId: {profileId}", innerException)
|
|
{
|
|
public long ActionId { get; } = actionId;
|
|
|
|
public long? ProfileId { get; } = profileId;
|
|
} |