mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +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;
|
||||
|
||||
/// Errors that can occur during parsing
|
||||
#[non_exhaustive]
|
||||
#[derive(Debug, Error)]
|
||||
pub enum ParseError {
|
||||
#[error(display = "Error while reading bits from stream: {}", _0)]
|
||||
|
|
@ -89,6 +90,7 @@ pub enum ParseError {
|
|||
UnknownDefinition(SendPropIdentifier),
|
||||
}
|
||||
|
||||
#[non_exhaustive]
|
||||
#[derive(Debug, Error)]
|
||||
pub enum MalformedSendPropDefinitionError {
|
||||
#[error(display = "Float property without defined size")]
|
||||
|
|
@ -110,6 +112,7 @@ pub enum MalformedSendPropDefinitionError {
|
|||
},
|
||||
}
|
||||
|
||||
#[non_exhaustive]
|
||||
#[derive(Debug, Error)]
|
||||
pub enum GameEventError {
|
||||
#[error(display = "Incorrect number of values")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue