Add ActionId and ProfileId properties to RecActionException
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.
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
namespace ReC.Application.Common.Exceptions;
|
namespace ReC.Application.Common.Exceptions;
|
||||||
|
|
||||||
public class RecActionException(long actionId, long? profileId, Exception innerException)
|
public class RecActionException(long actionId, long? profileId, Exception innerException)
|
||||||
: Exception($"Rec action failed. ActionId: {actionId}, ProfileId: {profileId}", innerException);
|
: Exception($"Rec action failed. ActionId: {actionId}, ProfileId: {profileId}", innerException)
|
||||||
|
{
|
||||||
|
public long ActionId { get; } = actionId;
|
||||||
|
|
||||||
|
public long? ProfileId { get; } = profileId;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user