roblox_emulator: implement Error trait for ServicesError

This commit is contained in:
Quaternions 2025-04-23 14:53:27 -07:00
parent 6a88003b09
commit fca9e1c325
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131

@ -5,6 +5,12 @@ use rbx_dom_weak::{types::Ref,InstanceBuilder,WeakDom};
pub enum ServicesError{
WorkspaceNotFound,
}
impl std::fmt::Display for ServicesError{
fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{
write!(f,"{self:?}")
}
}
impl std::error::Error for ServicesError{}
pub struct Services{
pub(crate) game:Ref,