aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/exceptions
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-17 14:40:26 -0500
committermat <github@matdoes.dev>2022-04-17 14:40:26 -0500
commit10cd1733cbba5c637fa0130a0cd7a7ab6e618226 (patch)
tree2767615fe92aa4481e3aabf503bc840def4320f9 /azalea-brigadier/src/exceptions
parent82ed6baea5c4e0d00f5fc2bbeb45cbb2838a3784 (diff)
downloadazalea-drasl-10cd1733cbba5c637fa0130a0cd7a7ab6e618226.tar.xz
add execute & get_integer
Diffstat (limited to 'azalea-brigadier/src/exceptions')
-rw-r--r--azalea-brigadier/src/exceptions/builtin_exceptions.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/azalea-brigadier/src/exceptions/builtin_exceptions.rs b/azalea-brigadier/src/exceptions/builtin_exceptions.rs
index 5f2e1605..09951a03 100644
--- a/azalea-brigadier/src/exceptions/builtin_exceptions.rs
+++ b/azalea-brigadier/src/exceptions/builtin_exceptions.rs
@@ -6,17 +6,17 @@ use super::command_syntax_exception::CommandSyntaxException;
#[derive(Clone, PartialEq)]
pub enum BuiltInExceptions {
- DoubleTooSmall { found: usize, min: usize },
- DoubleTooBig { found: usize, max: usize },
+ DoubleTooSmall { found: f64, min: f64 },
+ DoubleTooBig { found: f64, max: f64 },
- FloatTooSmall { found: usize, min: usize },
- FloatTooBig { found: usize, max: usize },
+ FloatTooSmall { found: f32, min: f32 },
+ FloatTooBig { found: f32, max: f32 },
- IntegerTooSmall { found: usize, min: usize },
- IntegerTooBig { found: usize, max: usize },
+ IntegerTooSmall { found: i32, min: i32 },
+ IntegerTooBig { found: i32, max: i32 },
- LONGTooSmall { found: usize, min: usize },
- LONGTooBig { found: usize, max: usize },
+ LongTooSmall { found: i64, min: i64 },
+ LongTooBig { found: i64, max: i64 },
LiteralIncorrect { expected: String },
@@ -65,10 +65,10 @@ impl fmt::Debug for BuiltInExceptions {
write!(f, "Integer must not be more than {}, found {}", max, found)
}
- BuiltInExceptions::LONGTooSmall { found, min } => {
+ BuiltInExceptions::LongTooSmall { found, min } => {
write!(f, "Long must not be less than {}, found {}", min, found)
}
- BuiltInExceptions::LONGTooBig { found, max } => {
+ BuiltInExceptions::LongTooBig { found, max } => {
write!(f, "Long must not be more than {}, found {}", max, found)
}