mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
add some new error codes
maybe they don't belong here?? they are error codes for the GAM.
This commit is contained in:
parent
73286828c8
commit
82e7855b24
1 changed files with 6 additions and 0 deletions
|
|
@ -155,6 +155,8 @@ pub enum Error {
|
||||||
InvalidPID = 21,
|
InvalidPID = 21,
|
||||||
UnknownError = 22,
|
UnknownError = 22,
|
||||||
AccessDenied = 23,
|
AccessDenied = 23,
|
||||||
|
UseBeforeInit = 24,
|
||||||
|
DoubleFree = 25,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Error {
|
impl Error {
|
||||||
|
|
@ -184,6 +186,8 @@ impl Error {
|
||||||
20 => InvalidThread,
|
20 => InvalidThread,
|
||||||
21 => InvalidPID,
|
21 => InvalidPID,
|
||||||
23 => AccessDenied,
|
23 => AccessDenied,
|
||||||
|
24 => UseBeforeInit,
|
||||||
|
25 => DoubleFree,
|
||||||
_ => UnknownError,
|
_ => UnknownError,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -213,6 +217,8 @@ impl Error {
|
||||||
InvalidThread => 20,
|
InvalidThread => 20,
|
||||||
InvalidPID => 21,
|
InvalidPID => 21,
|
||||||
AccessDenied => 23,
|
AccessDenied => 23,
|
||||||
|
UseBeforeInit => 24,
|
||||||
|
DoubleFree => 25,
|
||||||
UnknownError => usize::MAX,
|
UnknownError => usize::MAX,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue