use crate::{_tags, define_error};
define_error![individual: pub struct FailedErrorConversion;
#[derive(Default)],
+location: "error",
+tag: _tags!(value error),
DOC_FAILED_CONVERSION = "A failed conversion between two error types.",
self+f => write!(f, "Failed to convert between error types."),
];
define_error![individual: pub struct NotImplemented;
#[derive(Default)],
+location: "error",
+tag: _tags!(no error),
DOC_NOT_IMPLEMENTED = "The requested functionality is not implemented.",
self+f => write!(f, "The requested functionality is not implemented."),
];
define_error![individual: pub struct NotSupported;
#[derive(Default)],
+location: "error",
+tag: _tags!(no error),
DOC_NOT_SUPPORTED = "The requested functionality is not supported by this type.",
self+f => write!(f, "The requested functionality is not supported by this type."),
];
define_error![individual: pub struct InvalidValue;
#[derive(Default)],
+location: "error",
+tag: _tags!(value error),
DOC_INVALID_VALUE = "An invalid value was received for the given type or operation.",
self+f => write!(f, "An invalid value was received for the given type or operation."),
];
define_error! { composite: fmt(f)
+location: "error",
+tag: _tags!(no error_composite),
pub enum NotAvailable {
+tag: _tags!(no),
DOC_NOT_IMPLEMENTED: +const NotImplemented => NotImplemented,
+tag: _tags!(no),
DOC_NOT_SUPPORTED: +const NotSupported => NotSupported,
}
}