Skip to main content

arolariu.Backend.Domain.Invoices.DDD.AggregatorRoots.Invoices.Exceptions.Inner

arolariu.Backend.Domain.Invoices

arolariu.Backend.Domain.Invoices.DDD.AggregatorRoots.Invoices.Exceptions.Inner Namespace

Classes

InvoiceAlreadyExistsException Class

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

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

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceAlreadyExistsException

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

InvoiceAlreadyExistsException() Constructor

Initializes a new instance of the InvoiceAlreadyExistsException class.

public InvoiceAlreadyExistsException();

InvoiceAlreadyExistsException(string) Constructor

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

public InvoiceAlreadyExistsException(string message);

Parameters

message System.String

The exception message.

InvoiceAlreadyExistsException(string, Exception) Constructor

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

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

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

InvoiceAlreadyExistsException(Guid) Constructor

Initializes a new instance of the InvoiceAlreadyExistsException class with the specified invoice identifier.

public InvoiceAlreadyExistsException(System.Guid invoiceIdentifier);

Parameters

invoiceIdentifier System.Guid

The identifier of the invoice that already exists.

InvoiceAlreadyExistsException(Guid, Exception) Constructor

Initializes a new instance of the InvoiceAlreadyExistsException class with the specified invoice identifier and inner exception.

public InvoiceAlreadyExistsException(System.Guid invoiceIdentifier, System.Exception innerException);

Parameters

invoiceIdentifier System.Guid

The identifier of the invoice that already exists.

innerException System.Exception

The inner exception.

Properties

InvoiceAlreadyExistsException.InvoiceIdentifier Property

Gets the identifier of the invoice that already exists.

public System.Guid InvoiceIdentifier { get; }

Property Value

System.Guid

InvoiceCosmosDbRateLimitException 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 InvoiceCosmosDbRateLimitException : System.Exception, arolariu.Backend.Common.Exceptions.IRateLimitedException, arolariu.Backend.Common.Exceptions.IDependencyException

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceCosmosDbRateLimitException

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

InvoiceCosmosDbRateLimitException() Constructor

Initializes a new instance of the InvoiceCosmosDbRateLimitException class.

public InvoiceCosmosDbRateLimitException();

InvoiceCosmosDbRateLimitException(string) Constructor

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

public InvoiceCosmosDbRateLimitException(string message);

Parameters

message System.String

The exception message.

InvoiceCosmosDbRateLimitException(string, Exception) Constructor

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

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

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

InvoiceCosmosDbRateLimitException(TimeSpan, Exception) Constructor

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

public InvoiceCosmosDbRateLimitException(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

InvoiceCosmosDbRateLimitException.RetryAfter Property

Gets the recommended retry-after duration from Cosmos DB.

public System.TimeSpan RetryAfter { get; }

Implements RetryAfter

Property Value

System.TimeSpan

InvoiceDescriptionNotSetException Class

Invoice Description not set Exception

public class InvoiceDescriptionNotSetException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceDescriptionNotSetException

Constructors

InvoiceDescriptionNotSetException() Constructor

Base constructor

public InvoiceDescriptionNotSetException();

InvoiceDescriptionNotSetException(string) Constructor

Constructor with message

protected InvoiceDescriptionNotSetException(string? message);

Parameters

message System.String

InvoiceDescriptionNotSetException(string, Exception) Constructor

Constructor with message and inner exception

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

Parameters

message System.String

innerException System.Exception

InvoiceDescriptionNotSetException(Exception) Constructor

Initializes a new instance of the InvoiceDescriptionNotSetException

public InvoiceDescriptionNotSetException(System.Exception innerException);

Parameters

innerException System.Exception

InvoiceDescriptionNotSetException(SerializationInfo, StreamingContext) Constructor

Serialization constructor

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

Parameters

info System.Runtime.Serialization.SerializationInfo

context System.Runtime.Serialization.StreamingContext

InvoiceFailedStorageException 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 InvoiceFailedStorageException : System.Exception, arolariu.Backend.Common.Exceptions.IDependencyException

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceFailedStorageException

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

InvoiceFailedStorageException() Constructor

Initializes a new instance of the InvoiceFailedStorageException class.

public InvoiceFailedStorageException();

InvoiceFailedStorageException(string) Constructor

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

public InvoiceFailedStorageException(string message);

Parameters

message System.String

The exception message.

InvoiceFailedStorageException(string, Exception) Constructor

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

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

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

InvoiceForbiddenAccessException Class

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

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

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceForbiddenAccessException

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

InvoiceForbiddenAccessException() Constructor

Initializes a new instance of the InvoiceForbiddenAccessException class.

public InvoiceForbiddenAccessException();

InvoiceForbiddenAccessException(string) Constructor

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

public InvoiceForbiddenAccessException(string message);

Parameters

message System.String

The exception message.

InvoiceForbiddenAccessException(string, Exception) Constructor

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

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

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

InvoiceForbiddenAccessException(Guid, Guid) Constructor

Initializes a new instance of the InvoiceForbiddenAccessException class with invoice and user identifiers.

public InvoiceForbiddenAccessException(System.Guid invoiceIdentifier, System.Guid requestingUserIdentifier);

Parameters

invoiceIdentifier System.Guid

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

requestingUserIdentifier System.Guid

The identifier of the user attempting to access the invoice.

Properties

InvoiceForbiddenAccessException.InvoiceIdentifier Property

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

public System.Guid InvoiceIdentifier { get; }

Property Value

System.Guid

InvoiceForbiddenAccessException.RequestingUserIdentifier Property

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

public System.Guid RequestingUserIdentifier { get; }

Property Value

System.Guid

InvoiceIdNotSetException Class

Invoice Identifier not set Exception

public class InvoiceIdNotSetException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceIdNotSetException

Constructors

InvoiceIdNotSetException() Constructor

Base constructor

public InvoiceIdNotSetException();

InvoiceIdNotSetException(string) Constructor

Constructor with message

protected InvoiceIdNotSetException(string? message);

Parameters

message System.String

InvoiceIdNotSetException(string, Exception) Constructor

Constructor with message and inner exception

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

Parameters

message System.String

innerException System.Exception

InvoiceIdNotSetException(Exception) Constructor

Initializes a new instance of the InvoiceIdNotSetException

public InvoiceIdNotSetException(System.Exception innerException);

Parameters

innerException System.Exception

InvoiceIdNotSetException(SerializationInfo, StreamingContext) Constructor

Serialization constructor

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

Parameters

info System.Runtime.Serialization.SerializationInfo

context System.Runtime.Serialization.StreamingContext

InvoiceLockedException Class

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

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

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceLockedException

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

InvoiceLockedException() Constructor

Initializes a new instance of the InvoiceLockedException class.

public InvoiceLockedException();

InvoiceLockedException(string) Constructor

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

public InvoiceLockedException(string message);

Parameters

message System.String

The exception message.

InvoiceLockedException(string, Exception) Constructor

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

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

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

InvoiceLockedException(Guid) Constructor

Initializes a new instance of the InvoiceLockedException class with the specified invoice identifier.

public InvoiceLockedException(System.Guid invoiceIdentifier);

Parameters

invoiceIdentifier System.Guid

The identifier of the locked invoice.

Properties

InvoiceLockedException.InvoiceIdentifier Property

Gets the identifier of the locked invoice.

public System.Guid InvoiceIdentifier { get; }

Property Value

System.Guid

InvoiceNotFoundException Class

Thrown when an invoice lookup by identifier returns no result from the data store.

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

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceNotFoundException

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

InvoiceNotFoundException() Constructor

Initializes a new instance of the InvoiceNotFoundException class.

public InvoiceNotFoundException();

InvoiceNotFoundException(string) Constructor

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

public InvoiceNotFoundException(string message);

Parameters

message System.String

The exception message.

InvoiceNotFoundException(string, Exception) Constructor

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

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

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

InvoiceNotFoundException(Guid) Constructor

Initializes a new instance of the InvoiceNotFoundException class with the specified invoice identifier.

public InvoiceNotFoundException(System.Guid invoiceIdentifier);

Parameters

invoiceIdentifier System.Guid

The identifier of the invoice that was not found.

InvoiceNotFoundException(Guid, Exception) Constructor

Initializes a new instance of the InvoiceNotFoundException class with the specified invoice identifier and inner exception.

public InvoiceNotFoundException(System.Guid invoiceIdentifier, System.Exception innerException);

Parameters

invoiceIdentifier System.Guid

The identifier of the invoice that was not found.

innerException System.Exception

The inner exception.

Properties

InvoiceNotFoundException.InvoiceIdentifier Property

Gets the identifier of the invoice that was not found.

public System.Guid InvoiceIdentifier { get; }

Property Value

System.Guid

InvoicePaymentInformationNotCorrectException Class

Invoice payment information not correct Exception

public class InvoicePaymentInformationNotCorrectException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 InvoicePaymentInformationNotCorrectException

Constructors

InvoicePaymentInformationNotCorrectException() Constructor

Base constructor

public InvoicePaymentInformationNotCorrectException();

InvoicePaymentInformationNotCorrectException(string) Constructor

Constructor with message

protected InvoicePaymentInformationNotCorrectException(string? message);

Parameters

message System.String

InvoicePaymentInformationNotCorrectException(string, Exception) Constructor

Constructor with message and inner exception

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

Parameters

message System.String

innerException System.Exception

InvoicePaymentInformationNotCorrectException(Exception) Constructor

Initializes a new instance of the InvoicePaymentInformationNotCorrectException

public InvoicePaymentInformationNotCorrectException(System.Exception innerException);

Parameters

innerException System.Exception

InvoicePaymentInformationNotCorrectException(SerializationInfo, StreamingContext) Constructor

Serialization constructor

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

Parameters

info System.Runtime.Serialization.SerializationInfo

context System.Runtime.Serialization.StreamingContext

InvoicePhotoLocationNotCorrectException Class

Invoice Photo Location not correct Exception

public class InvoicePhotoLocationNotCorrectException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 InvoicePhotoLocationNotCorrectException

Constructors

InvoicePhotoLocationNotCorrectException() Constructor

Base constructor

public InvoicePhotoLocationNotCorrectException();

InvoicePhotoLocationNotCorrectException(string) Constructor

Constructor with message

protected InvoicePhotoLocationNotCorrectException(string? message);

Parameters

message System.String

InvoicePhotoLocationNotCorrectException(string, Exception) Constructor

Constructor with message and inner exception

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

Parameters

message System.String

innerException System.Exception

InvoicePhotoLocationNotCorrectException(Exception) Constructor

Initializes a new instance of the InvoicePhotoLocationNotCorrectException

public InvoicePhotoLocationNotCorrectException(System.Exception innerException);

Parameters

innerException System.Exception

InvoicePhotoLocationNotCorrectException(SerializationInfo, StreamingContext) Constructor

Serialization constructor

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

Parameters

info System.Runtime.Serialization.SerializationInfo

context System.Runtime.Serialization.StreamingContext

InvoiceTimeInformationNotCorrectException Class

Invoice time information not correct Exception

public class InvoiceTimeInformationNotCorrectException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceTimeInformationNotCorrectException

Constructors

InvoiceTimeInformationNotCorrectException() Constructor

Base constructor

public InvoiceTimeInformationNotCorrectException();

InvoiceTimeInformationNotCorrectException(string) Constructor

Constructor with message

protected InvoiceTimeInformationNotCorrectException(string? message);

Parameters

message System.String

InvoiceTimeInformationNotCorrectException(string, Exception) Constructor

Constructor with message and inner exception

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

Parameters

message System.String

innerException System.Exception

InvoiceTimeInformationNotCorrectException(Exception) Constructor

Initializes a new instance of the InvoiceTimeInformationNotCorrectException

public InvoiceTimeInformationNotCorrectException(System.Exception innerException);

Parameters

innerException System.Exception

InvoiceTimeInformationNotCorrectException(SerializationInfo, StreamingContext) Constructor

Serialization constructor

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

Parameters

info System.Runtime.Serialization.SerializationInfo

context System.Runtime.Serialization.StreamingContext

InvoiceUnauthorizedAccessException Class

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

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

Inheritance System.Object 🡒 System.Exception 🡒 InvoiceUnauthorizedAccessException

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

InvoiceUnauthorizedAccessException() Constructor

Initializes a new instance of the InvoiceUnauthorizedAccessException class.

public InvoiceUnauthorizedAccessException();

InvoiceUnauthorizedAccessException(string) Constructor

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

public InvoiceUnauthorizedAccessException(string message);

Parameters

message System.String

The exception message.

InvoiceUnauthorizedAccessException(string, Exception) Constructor

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

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

Parameters

message System.String

The exception message.

innerException System.Exception

The inner exception.

// was this page useful?