14 lines
284 B
Rust
14 lines
284 B
Rust
pub mod aggregates;
|
|
pub mod entities;
|
|
pub mod repositories;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum DomainError {
|
|
#[error("unauthorized")]
|
|
Unauthorized,
|
|
#[error("invalid argument: {0}")]
|
|
InvalidArgument(String),
|
|
#[error("unexpected error")]
|
|
Unexpected,
|
|
}
|