systemd_duration/
error.rs

1// SPDX-License-Identifier: CC0-1.0
2//
3// This file is part of systemd-duration.
4//
5// To the extent possible under law, the author(s) have dedicated all copyright
6// and related and neighboring rights to this software to the public domain
7// worldwide. This software is distributed without any warranty.
8//
9// You should have received a copy of the CC0 Public Domain Dedication along
10// with this software. If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
11
12#[derive(Debug, thiserror::Error)]
13/// The systemd-duration error type.
14pub enum Error {
15    #[error("Duration overflowed")]
16    DurationOverflow,
17
18    #[error(transparent)]
19    ParserError(#[from] nom::error::Error<String>),
20}