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: i64
Exception id.
text: String
Exception text, which should be used together with exception object when available.
line_number: i64
Line number of the exception location (0-based).
column_number: i64
Column 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
Returns a copy 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 ExceptionDetails
impl Debug for ExceptionDetails
Source§impl<'de> Deserialize<'de> for ExceptionDetails
impl<'de> Deserialize<'de> for ExceptionDetails
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>,
Deserialize this value from the given Serde deserializer. Read more
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)>
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()
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,
Serialize this value into the given Serde serializer. Read more
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 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
Mutably borrows from an owned value. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more