overtone/errors/
mod.rs

1//! All the API errors.
2
3use std::string::FromUtf8Error;
4
5#[derive(Debug)]
6pub enum OvertoneApiError {
7    // A generic error. This is a code smell and will be removed from Overtone as stability grows.
8    GenericError(Option<std::io::Error>),
9
10    DirectoryNotFound(std::io::Error),
11    FileNotFound(std::io::Error),
12    DirectoryIsNotOvertoneProject(Option<std::io::Error>),
13    ErrorOpeningProject(std::io::Error),
14
15    TomlParsingError(toml::de::Error),
16    StringParsingError(FromUtf8Error),
17
18    PluginAlreadyLoaded(),
19    MissingPlugin(String),
20    LibraryNotFound(libloading::Error),
21    LibraryIsNotOvertonePlugin(),
22}