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 with at most 1,024 UTF-8 bytes of diagnostic text. Oversized backing allocations are replaced with the complete-character prefix.
Sourcepub fn at(self, source_path: impl Into<String>) -> Self
pub fn at(self, source_path: impl Into<String>) -> Self
Attaches at most 512 UTF-8 bytes of the logical source path, never a partial character.
Sourcepub fn with_text_context(self, context: TextFailureContextV1) -> Self
pub fn with_text_context(self, context: TextFailureContextV1) -> Self
Attaches payload-free text geometry in fixed-point units (1,000,000 per point).
Sourcepub fn diagnostic_v1(&self) -> FileMakerDiagnosticV1
pub fn diagnostic_v1(&self) -> FileMakerDiagnosticV1
Produces safe IPC evidence without free-form messages or document content. Only bounded logical paths with safe schema-identifier characters are retained.
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.