pub struct ExceptionDetails {
pub exception_id: i64,
pub text: String,
pub line_number: i64,
pub column_number: i64,
pub script_id: Option<ScriptId>,
pub url: Option<String>,
pub stack_trace: Option<StackTrace>,
pub exception: Option<RemoteObject>,
pub execution_context_id: Option<ExecutionContextId>,
pub exception_meta_data: Option<Value>,
}Expand description
Detailed information about exception (or error) that was thrown during script compilation or execution. ExceptionDetails
Fields§
§exception_id: i64Exception id.
text: StringException text, which should be used together with exception object when available.
line_number: i64Line number of the exception location (0-based).
column_number: i64Column number of the exception location (0-based).
script_id: Option<ScriptId>Script ID of the exception location.
url: Option<String>URL of the exception location, to be used when the script was not reported.
stack_trace: Option<StackTrace>JavaScript stack trace if available.
exception: Option<RemoteObject>Exception object if available.
execution_context_id: Option<ExecutionContextId>Identifier of the context where exception happened.
exception_meta_data: Option<Value>Dictionary with entries of meta data that the client associated with this exception, such as information about associated network requests, etc.
Implementations§
Source§impl ExceptionDetails
impl ExceptionDetails
pub fn builder() -> ExceptionDetailsBuilder
Source§impl ExceptionDetails
impl ExceptionDetails
pub const IDENTIFIER: &'static str = "Runtime.ExceptionDetails"
Trait Implementations§
Source§impl Clone for ExceptionDetails
impl Clone for ExceptionDetails
Source§fn clone(&self) -> ExceptionDetails
fn clone(&self) -> ExceptionDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExceptionDetails
impl Debug for ExceptionDetails
Source§impl Default for ExceptionDetails
impl Default for ExceptionDetails
Source§fn default() -> ExceptionDetails
fn default() -> ExceptionDetails
Source§impl<'de> Deserialize<'de> for ExceptionDetailswhere
ExceptionDetails: Default,
impl<'de> Deserialize<'de> for ExceptionDetailswhere
ExceptionDetails: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExceptionDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExceptionDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ExceptionDetails
impl Display for ExceptionDetails
Source§impl Error for ExceptionDetails
impl Error for ExceptionDetails
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for ExceptionDetails
impl PartialEq for ExceptionDetails
Source§impl Serialize for ExceptionDetails
impl Serialize for ExceptionDetails
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ExceptionDetails
Auto Trait Implementations§
impl Freeze for ExceptionDetails
impl RefUnwindSafe for ExceptionDetails
impl Send for ExceptionDetails
impl Sync for ExceptionDetails
impl Unpin for ExceptionDetails
impl UnsafeUnpin for ExceptionDetails
impl UnwindSafe for ExceptionDetails
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.