rabbitmq_versioning/errors.rs
1// Copyright (c) 2025-2026 Michael S. Klishin and Contributors
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9use thiserror::Error;
10
11#[derive(Error, Debug, Clone, PartialEq, Eq)]
12pub enum Error {
13 #[error("invalid version format: {0}")]
14 InvalidVersion(String),
15
16 #[error("invalid prerelease format: {0}")]
17 InvalidPrerelease(String),
18}