pub enum Error {
Io(Arc<Error>),
Serialization(Arc<Error>),
StdinUnavailable,
StdoutUnavailable,
UnserializableConfig(String),
KataGoGeneralError {
error: String,
},
KataGoFieldError {
error: String,
field: String,
},
UnhandledWarnings(Vec<Warning>),
}Expand description
Errors that can occur while interacting with the analysis engine.
Variants§
Io(Arc<Error>)
An I/O error occurred while launching, writing to, or reading from the analysis engine.
Serialization(Arc<Error>)
An error occurred while serializing or deserializing a message.
The engine’s stdin was unavailable after launch.
The engine’s stdout was unavailable after launch.
UnserializableConfig(String)
The specified config setting’s value could not be serialized.
KataGoGeneralError
The analysis engine returned an error response without specifying which request caused it.
When this error occurs, all pending requests will return this error, even if they might have otherwise succeeded.
KataGoFieldError
The analysis engine returned an error response.
When this error occurs, all positions still being analyzed as part of the associated request will return this error, even if they might have otherwise succeeded.
Fields
UnhandledWarnings(Vec<Warning>)
The analysis engine returned a warning response which was converted to an error.
See also: WarningHandling
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()