mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 04:12:42 +00:00
added stack overflow error
This commit is contained in:
parent
3066ba9032
commit
6386df22c0
3 changed files with 10 additions and 8 deletions
|
|
@ -48,6 +48,8 @@ pub enum RuntimeError {
|
|||
UndefinedAttribute { class: Rc<LoxClass>, name: Box<str> },
|
||||
#[error("RuntimeError: {value} is not a valid superclass")]
|
||||
InvalidSuperclass { value: Value },
|
||||
#[error("RuntimeError: stack overflow")]
|
||||
StackOverflow,
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue