Make Application and Sandbox return a Result
This commit is contained in:
parent
faa12382d4
commit
c1f79b40cf
40 changed files with 166 additions and 58 deletions
7
graphics/src/error.rs
Normal file
7
graphics/src/error.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/// A graphical error that occurred while running an application.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error {
|
||||
/// A suitable graphics adapter or device could not be found
|
||||
#[error("a suitable graphics adapter or device could not be found")]
|
||||
AdapterNotFound,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue