typeshare_java/error.rs
1use thiserror::Error;
2use typeshare_model::{decorator, prelude::SpecialRustType};
3
4#[derive(Error, Debug)]
5pub enum FormatSpecialTypeError {
6 #[error("Unsupported special type: {0:?}")]
7 UnsupportedSpecialType(SpecialRustType),
8}
9
10#[derive(Error, Debug)]
11pub enum WriteDecoratorError {
12 #[error("Invalid annotation: {0:?}")]
13 InvalidAnnotation(decorator::Value),
14}