mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
non_exhaustive errors
This commit is contained in:
parent
cd20b5bbd7
commit
fb471a5a44
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ use std::str::Utf8Error;
|
||||||
use std::string::FromUtf8Error;
|
use std::string::FromUtf8Error;
|
||||||
|
|
||||||
/// Errors that can occur during parsing
|
/// Errors that can occur during parsing
|
||||||
|
#[non_exhaustive]
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
pub enum ParseError {
|
pub enum ParseError {
|
||||||
#[error(display = "Error while reading bits from stream: {}", _0)]
|
#[error(display = "Error while reading bits from stream: {}", _0)]
|
||||||
|
|
@ -89,6 +90,7 @@ pub enum ParseError {
|
||||||
UnknownDefinition(SendPropIdentifier),
|
UnknownDefinition(SendPropIdentifier),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
pub enum MalformedSendPropDefinitionError {
|
pub enum MalformedSendPropDefinitionError {
|
||||||
#[error(display = "Float property without defined size")]
|
#[error(display = "Float property without defined size")]
|
||||||
|
|
@ -110,6 +112,7 @@ pub enum MalformedSendPropDefinitionError {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
pub enum GameEventError {
|
pub enum GameEventError {
|
||||||
#[error(display = "Incorrect number of values")]
|
#[error(display = "Incorrect number of values")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue