pub struct ExceptionDetailsBuilder { /* private fields */ }Available on crate feature
Runtime only.Implementations§
Source§impl ExceptionDetailsBuilder
impl ExceptionDetailsBuilder
Sourcepub fn exception_id(&mut self, v: u32) -> &mut Self
pub fn exception_id(&mut self, v: u32) -> &mut Self
Exception id.
Sourcepub fn text(&mut self, v: String) -> &mut Self
pub fn text(&mut self, v: String) -> &mut Self
Exception text, which should be used together with exception object when available.
Sourcepub fn line_number(&mut self, v: u32) -> &mut Self
pub fn line_number(&mut self, v: u32) -> &mut Self
Line number of the exception location (0-based).
Sourcepub fn column_number(&mut self, v: u32) -> &mut Self
pub fn column_number(&mut self, v: u32) -> &mut Self
Column number of the exception location (0-based).
Sourcepub fn url(&mut self, v: String) -> &mut Self
pub fn url(&mut self, v: String) -> &mut Self
URL of the exception location, to be used when the script was not reported.
Sourcepub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
pub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
JavaScript stack trace if available.
Sourcepub fn exception(&mut self, v: RemoteObject) -> &mut Self
pub fn exception(&mut self, v: RemoteObject) -> &mut Self
Exception object if available.
Sourcepub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
pub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
Identifier of the context where exception happened.
pub fn build(&mut self) -> Result<ExceptionDetails, &'static str>
Trait Implementations§
Source§impl Clone for ExceptionDetailsBuilder
impl Clone for ExceptionDetailsBuilder
Source§fn clone(&self) -> ExceptionDetailsBuilder
fn clone(&self) -> ExceptionDetailsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExceptionDetailsBuilder
impl Debug for ExceptionDetailsBuilder
Auto Trait Implementations§
impl Freeze for ExceptionDetailsBuilder
impl RefUnwindSafe for ExceptionDetailsBuilder
impl Send for ExceptionDetailsBuilder
impl Sync for ExceptionDetailsBuilder
impl Unpin for ExceptionDetailsBuilder
impl UnwindSafe for ExceptionDetailsBuilder
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