Skip to main content

arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Exceptions.Inner

arolariu.Backend.Domain.Invoices

arolariu.Backend.Domain.Invoices.DDD.Entities.Merchants.Exceptions.Inner Namespace

Classes

MerchantAlreadyExistsException Class

Thrown when attempting to create a merchant with an identifier that already exists in the data store (Cosmos HTTP 409).

public sealed class MerchantAlreadyExistsException : System.Exception, arolariu.Backend.Common.Exceptions.IAlreadyExistsException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Inheritance System.Object 🡒 System.Exception 🡒 MerchantAlreadyExistsException

Implements arolariu.Backend.Common.Exceptions.IAlreadyExistsException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Remarks

Implements arolariu.Backend.Common.Exceptions.IAlreadyExistsException; ExceptionToHttpResultMapper produces HTTP 409 Conflict when this exception is surfaced, whether unwrapped or wrapped by a higher-layer outer exception.

Constructors

MerchantAlreadyExistsException() Constructor

Initializes a new instance of the MerchantAlreadyExistsException class.

public MerchantAlreadyExistsException();

MerchantAlreadyExistsException(string) Constructor

Initializes a new instance of the MerchantAlreadyExistsException class with a custom message.

public MerchantAlreadyExistsException(string message);

Parameters

message System.String

The exception message.

MerchantAlreadyExistsException(string, Exception) Constructor

Initializes a new instance of the MerchantAlreadyExistsException class with a custom message and inner exception.

public MerchantAlreadyExistsException(string message, System.Exception innerException);

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

MerchantAlreadyExistsException(Guid) Constructor

Initializes a new instance of the MerchantAlreadyExistsException class with the specified merchant identifier.

public MerchantAlreadyExistsException(System.Guid merchantIdentifier);

Parameters

merchantIdentifier System.Guid

The identifier of the merchant that already exists.

MerchantAlreadyExistsException(Guid, Exception) Constructor

Initializes a new instance of the MerchantAlreadyExistsException class with the specified merchant identifier and inner exception.

public MerchantAlreadyExistsException(System.Guid merchantIdentifier, System.Exception innerException);

Parameters

merchantIdentifier System.Guid

The identifier of the merchant that already exists.

innerException System.Exception

The inner exception.

Properties

MerchantAlreadyExistsException.MerchantIdentifier Property

Gets the identifier of the merchant that already exists.

public System.Guid MerchantIdentifier { get; }

Property Value

System.Guid

MerchantCosmosDbRateLimitException Class

Thrown when Cosmos DB returns HTTP 429 (request rate too large). Carries the recommended retry-after value so the mapper can surface it as a response hint.

public sealed class MerchantCosmosDbRateLimitException : System.Exception, arolariu.Backend.Common.Exceptions.IRateLimitedException, arolariu.Backend.Common.Exceptions.IDependencyException

Inheritance System.Object 🡒 System.Exception 🡒 MerchantCosmosDbRateLimitException

Implements arolariu.Backend.Common.Exceptions.IRateLimitedException, arolariu.Backend.Common.Exceptions.IDependencyException

Remarks

Implements arolariu.Backend.Common.Exceptions.IRateLimitedException; ExceptionToHttpResultMapper produces HTTP 429 Too Many Requests and surfaces the RetryAfter value in the retryAfterSeconds ProblemDetails extension.

Constructors

MerchantCosmosDbRateLimitException() Constructor

Initializes a new instance of the MerchantCosmosDbRateLimitException class.

public MerchantCosmosDbRateLimitException();

MerchantCosmosDbRateLimitException(string) Constructor

Initializes a new instance of the MerchantCosmosDbRateLimitException class with a custom message.

public MerchantCosmosDbRateLimitException(string message);

Parameters

message System.String

The exception message.

MerchantCosmosDbRateLimitException(string, Exception) Constructor

Initializes a new instance of the MerchantCosmosDbRateLimitException class with a custom message and inner exception.

public MerchantCosmosDbRateLimitException(string message, System.Exception innerException);

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

MerchantCosmosDbRateLimitException(TimeSpan, Exception) Constructor

Initializes a new instance of the MerchantCosmosDbRateLimitException class with retry-after metadata.

public MerchantCosmosDbRateLimitException(System.TimeSpan retryAfter, System.Exception innerException);

Parameters

retryAfter System.TimeSpan

The recommended retry-after duration from Cosmos DB.

innerException System.Exception

The underlying Cosmos exception.

Properties

MerchantCosmosDbRateLimitException.RetryAfter Property

Gets the recommended retry-after duration from Cosmos DB.

public System.TimeSpan RetryAfter { get; }

Implements RetryAfter

Property Value

System.TimeSpan

MerchantFailedStorageException Class

Thrown when the Cosmos DB storage layer is unavailable or returns an unexpected server-side error (HTTP 500, 503, or connection failure). Maps to HTTP 503.

public sealed class MerchantFailedStorageException : System.Exception, arolariu.Backend.Common.Exceptions.IDependencyException

Inheritance System.Object 🡒 System.Exception 🡒 MerchantFailedStorageException

Implements arolariu.Backend.Common.Exceptions.IDependencyException

Remarks

Implements arolariu.Backend.Common.Exceptions.IDependencyException; ExceptionToHttpResultMapper produces HTTP 503 Service Unavailable when this exception is surfaced, whether unwrapped or wrapped by a higher-layer outer exception.

Constructors

MerchantFailedStorageException() Constructor

Initializes a new instance of the MerchantFailedStorageException class.

public MerchantFailedStorageException();

MerchantFailedStorageException(string) Constructor

Initializes a new instance of the MerchantFailedStorageException class with a custom message.

public MerchantFailedStorageException(string message);

Parameters

message System.String

The exception message.

MerchantFailedStorageException(string, Exception) Constructor

Initializes a new instance of the MerchantFailedStorageException class with a custom message and inner exception.

public MerchantFailedStorageException(string message, System.Exception innerException);

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

MerchantForbiddenAccessException Class

Thrown when the caller has authenticated but lacks permission for the requested merchant (e.g., cross-user access). Maps to HTTP 403 Forbidden.

public sealed class MerchantForbiddenAccessException : System.Exception, arolariu.Backend.Common.Exceptions.IForbiddenException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Inheritance System.Object 🡒 System.Exception 🡒 MerchantForbiddenAccessException

Implements arolariu.Backend.Common.Exceptions.IForbiddenException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Remarks

Implements arolariu.Backend.Common.Exceptions.IForbiddenException; ExceptionToHttpResultMapper produces HTTP 403 Forbidden when this exception is surfaced, whether unwrapped or wrapped by a higher-layer outer exception.

Constructors

MerchantForbiddenAccessException() Constructor

Initializes a new instance of the MerchantForbiddenAccessException class.

public MerchantForbiddenAccessException();

MerchantForbiddenAccessException(string) Constructor

Initializes a new instance of the MerchantForbiddenAccessException class with a custom message.

public MerchantForbiddenAccessException(string message);

Parameters

message System.String

The exception message.

MerchantForbiddenAccessException(string, Exception) Constructor

Initializes a new instance of the MerchantForbiddenAccessException class with a custom message and inner exception.

public MerchantForbiddenAccessException(string message, System.Exception innerException);

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

MerchantForbiddenAccessException(Guid, Guid) Constructor

Initializes a new instance of the MerchantForbiddenAccessException class with merchant and user identifiers.

public MerchantForbiddenAccessException(System.Guid merchantIdentifier, System.Guid requestingUserIdentifier);

Parameters

merchantIdentifier System.Guid

The identifier of the merchant that the user is forbidden from accessing.

requestingUserIdentifier System.Guid

The identifier of the user attempting to access the merchant.

Properties

MerchantForbiddenAccessException.MerchantIdentifier Property

Gets the identifier of the merchant that the user is forbidden from accessing.

public System.Guid MerchantIdentifier { get; }

Property Value

System.Guid

MerchantForbiddenAccessException.RequestingUserIdentifier Property

Gets the identifier of the user attempting to access the merchant.

public System.Guid RequestingUserIdentifier { get; }

Property Value

System.Guid

MerchantIdNotSetException Class

Merchant Identifier not set Exception

public class MerchantIdNotSetException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 MerchantIdNotSetException

Constructors

MerchantIdNotSetException() Constructor

Base constructor

public MerchantIdNotSetException();

MerchantIdNotSetException(string) Constructor

Constructor with message

protected MerchantIdNotSetException(string? message);

Parameters

message System.String

MerchantIdNotSetException(string, Exception) Constructor

Constructor with message and inner exception

protected MerchantIdNotSetException(string? message, System.Exception? innerException);

Parameters

message System.String

innerException System.Exception

MerchantIdNotSetException(Exception) Constructor

Initializes a new instance of the MerchantIdNotSetException

public MerchantIdNotSetException(System.Exception innerException);

Parameters

innerException System.Exception

MerchantIdNotSetException(SerializationInfo, StreamingContext) Constructor

Serialization constructor

protected MerchantIdNotSetException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info System.Runtime.Serialization.SerializationInfo

context System.Runtime.Serialization.StreamingContext

MerchantLockedException Class

Thrown when a merchant is soft-deleted and cannot be mutated or read through the standard read path. Maps to HTTP 423 Locked.

public sealed class MerchantLockedException : System.Exception, arolariu.Backend.Common.Exceptions.ILockedException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Inheritance System.Object 🡒 System.Exception 🡒 MerchantLockedException

Implements arolariu.Backend.Common.Exceptions.ILockedException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Remarks

Implements arolariu.Backend.Common.Exceptions.ILockedException; ExceptionToHttpResultMapper produces HTTP 423 Locked when this exception is surfaced, whether unwrapped or wrapped by a higher-layer outer exception.

Constructors

MerchantLockedException() Constructor

Initializes a new instance of the MerchantLockedException class.

public MerchantLockedException();

MerchantLockedException(string) Constructor

Initializes a new instance of the MerchantLockedException class with a custom message.

public MerchantLockedException(string message);

Parameters

message System.String

The exception message.

MerchantLockedException(string, Exception) Constructor

Initializes a new instance of the MerchantLockedException class with a custom message and inner exception.

public MerchantLockedException(string message, System.Exception innerException);

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

MerchantLockedException(Guid) Constructor

Initializes a new instance of the MerchantLockedException class with the specified merchant identifier.

public MerchantLockedException(System.Guid merchantIdentifier);

Parameters

merchantIdentifier System.Guid

The identifier of the locked merchant.

Properties

MerchantLockedException.MerchantIdentifier Property

Gets the identifier of the locked merchant.

public System.Guid MerchantIdentifier { get; }

Property Value

System.Guid

MerchantNotFoundException Class

Thrown when a merchant lookup by identifier returns no result from the data store.

public sealed class MerchantNotFoundException : System.Exception, arolariu.Backend.Common.Exceptions.INotFoundException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Inheritance System.Object 🡒 System.Exception 🡒 MerchantNotFoundException

Implements arolariu.Backend.Common.Exceptions.INotFoundException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Remarks

Implements arolariu.Backend.Common.Exceptions.INotFoundException; ExceptionToHttpResultMapper produces HTTP 404 Not Found when this exception is surfaced, whether unwrapped or wrapped by a Foundation/Orchestration/Processing outer exception.

Constructors

MerchantNotFoundException() Constructor

Initializes a new instance of the MerchantNotFoundException class.

public MerchantNotFoundException();

MerchantNotFoundException(string) Constructor

Initializes a new instance of the MerchantNotFoundException class with a custom message.

public MerchantNotFoundException(string message);

Parameters

message System.String

The exception message.

MerchantNotFoundException(string, Exception) Constructor

Initializes a new instance of the MerchantNotFoundException class with a custom message and inner exception.

public MerchantNotFoundException(string message, System.Exception innerException);

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

MerchantNotFoundException(Guid) Constructor

Initializes a new instance of the MerchantNotFoundException class with the specified merchant identifier.

public MerchantNotFoundException(System.Guid merchantIdentifier);

Parameters

merchantIdentifier System.Guid

The identifier of the merchant that was not found.

MerchantNotFoundException(Guid, Exception) Constructor

Initializes a new instance of the MerchantNotFoundException class with the specified merchant identifier and inner exception.

public MerchantNotFoundException(System.Guid merchantIdentifier, System.Exception innerException);

Parameters

merchantIdentifier System.Guid

The identifier of the merchant that was not found.

innerException System.Exception

The inner exception.

Properties

MerchantNotFoundException.MerchantIdentifier Property

Gets the identifier of the merchant that was not found.

public System.Guid MerchantIdentifier { get; }

Property Value

System.Guid

MerchantParentCompanyIdNotSetException Class

Merchant Parent Company Identifier not set Exception

public class MerchantParentCompanyIdNotSetException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 MerchantParentCompanyIdNotSetException

Constructors

MerchantParentCompanyIdNotSetException() Constructor

Base constructor

public MerchantParentCompanyIdNotSetException();

MerchantParentCompanyIdNotSetException(string) Constructor

Constructor with message

protected MerchantParentCompanyIdNotSetException(string? message);

Parameters

message System.String

MerchantParentCompanyIdNotSetException(string, Exception) Constructor

Constructor with message and inner exception

protected MerchantParentCompanyIdNotSetException(string? message, System.Exception? innerException);

Parameters

message System.String

innerException System.Exception

MerchantParentCompanyIdNotSetException(Exception) Constructor

Initializes a new instance of the MerchantParentCompanyIdNotSetException

public MerchantParentCompanyIdNotSetException(System.Exception innerException);

Parameters

innerException System.Exception

MerchantParentCompanyIdNotSetException(SerializationInfo, StreamingContext) Constructor

Serialization constructor

protected MerchantParentCompanyIdNotSetException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info System.Runtime.Serialization.SerializationInfo

context System.Runtime.Serialization.StreamingContext

MerchantUnauthorizedAccessException Class

Thrown when the dependency rejects the request due to missing/invalid authentication (HTTP 401 at Cosmos or downstream boundary).

public sealed class MerchantUnauthorizedAccessException : System.Exception, arolariu.Backend.Common.Exceptions.IUnauthorizedException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Inheritance System.Object 🡒 System.Exception 🡒 MerchantUnauthorizedAccessException

Implements arolariu.Backend.Common.Exceptions.IUnauthorizedException, arolariu.Backend.Common.Exceptions.IDependencyValidationException

Remarks

Implements arolariu.Backend.Common.Exceptions.IUnauthorizedException; ExceptionToHttpResultMapper produces HTTP 401 Unauthorized when this exception is surfaced, whether unwrapped or wrapped by a higher-layer outer exception.

Constructors

MerchantUnauthorizedAccessException() Constructor

Initializes a new instance of the MerchantUnauthorizedAccessException class.

public MerchantUnauthorizedAccessException();

MerchantUnauthorizedAccessException(string) Constructor

Initializes a new instance of the MerchantUnauthorizedAccessException class with a custom message.

public MerchantUnauthorizedAccessException(string message);

Parameters

message System.String

The exception message.

MerchantUnauthorizedAccessException(string, Exception) Constructor

Initializes a new instance of the MerchantUnauthorizedAccessException class with a custom message and inner exception.

public MerchantUnauthorizedAccessException(string message, System.Exception innerException);

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

// was this page useful?