mirror of
https://github.com/Kapendev/parin.git
synced 2025-04-26 13:09:56 +03:00
23 lines
402 B
D
23 lines
402 B
D
// Copyright 2024 Alexandros F. G. Kapretsos
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
/// The `errors` module provides a set of error codes and data structures for error handling.
|
|
|
|
module popka.core.errors;
|
|
|
|
@safe @nogc nothrow:
|
|
|
|
enum BasicError : ubyte {
|
|
none,
|
|
some,
|
|
invalid,
|
|
overflow,
|
|
notFound,
|
|
cantRead,
|
|
cantWrite,
|
|
}
|
|
|
|
struct BasicResult(T) {
|
|
T value;
|
|
BasicError error;
|
|
}
|