pub struct FileMakerError { /* private fields */ }Expand description
Typed compiler error with stable code and bounded context.
Implementations§
Source§impl FileMakerError
impl FileMakerError
Sourcepub fn new(code: ErrorCode, message: impl Into<String>) -> Self
pub fn new(code: ErrorCode, message: impl Into<String>) -> Self
Creates an error while bounding user-controlled diagnostic text.
Sourcepub fn at(self, source_path: impl Into<String>) -> Self
pub fn at(self, source_path: impl Into<String>) -> Self
Attaches a bounded logical source path.
Sourcepub fn source_path(&self) -> Option<&str>
pub fn source_path(&self) -> Option<&str>
Returns the logical input path, when available.
Trait Implementations§
Source§impl Debug for FileMakerError
impl Debug for FileMakerError
Source§impl Display for FileMakerError
impl Display for FileMakerError
Source§impl Error for FileMakerError
impl Error for FileMakerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FileMakerError
impl RefUnwindSafe for FileMakerError
impl Send for FileMakerError
impl Sync for FileMakerError
impl Unpin for FileMakerError
impl UnsafeUnpin for FileMakerError
impl UnwindSafe for FileMakerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.