<areahref="classcrashpad_1_1ExceptionSnapshot.html"title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t..."alt="crashpad::ExceptionSnapshot"shape="rect"coords="0,0,247,24"/>
<trclass="memdesc:a689b7087d7d69cf432c32c2f3dd748c7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes the object. <ahref="#a689b7087d7d69cf432c32c2f3dd748c7">More...</a><br/></td></tr>
<trclass="memdesc:ab4c2e6947c052aa9d0ded95b5be72de1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a <aclass="el"href="structcrashpad_1_1CPUContext.html"title="A context structure capable of carrying the context of any supported CPU architecture. ">CPUContext</a> object corresponding to the exception thread’s CPU context at the time of the exception. <ahref="#ab4c2e6947c052aa9d0ded95b5be72de1">More...</a><br/></td></tr>
<trclass="memdesc:a140f74a35257a73faca6b0e2d8f04f44"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the thread identifier of the thread that triggered the exception. <ahref="#a140f74a35257a73faca6b0e2d8f04f44">More...</a><br/></td></tr>
<trclass="memdesc:a8083efff504bd812e2de87bfbf3d9547"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the top-level exception code identifying the exception. <ahref="#a8083efff504bd812e2de87bfbf3d9547">More...</a><br/></td></tr>
<trclass="memdesc:a5977dded1385688030a667ac1fafaa51"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the second-level exception code identifying the exception. <ahref="#a5977dded1385688030a667ac1fafaa51">More...</a><br/></td></tr>
<trclass="memdesc:a8d42e828a3f6768b21114fc1f20c03d3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the address that triggered the exception. <ahref="#a8d42e828a3f6768b21114fc1f20c03d3">More...</a><br/></td></tr>
<trclass="memdesc:a9e062aaf208e2e20ba68b407b9bfd950"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a series of operating system-specific exception codes. <ahref="#a9e062aaf208e2e20ba68b407b9bfd950">More...</a><br/></td></tr>
<trclass="memdesc:af4e67f7a996f10eee640dabf1833fd6c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a vector of additional memory blocks that should be included in a minidump. <ahref="#af4e67f7a996f10eee640dabf1833fd6c">More...</a><br/></td></tr>
<p>Returns a series of operating system-specific exception codes. </p>
<p>The precise interpretation of these codes is specific to the snapshot operating system. These codes may provide a duplicate of information available elsewhere, they may extend information available elsewhere, or they may not be present at all. In this case, an empty vector will be returned.</p>
<p>For macOS, this will be a vector containing the original exception type and the values of <code>code[0]</code> and <code>code[1]</code> as received by a Mach exception handler.</p>
<p>For Windows, these are additional arguments (if any) as provided to <code>RaiseException()</code>. See the documentation for <code><aclass="el"href="structcrashpad_1_1ExceptionInformation.html"title="Structure read out of the client process by the crash handler when an exception occurs. ">ExceptionInformation</a></code> in <code>EXCEPTION_RECORD</code>. </p>
<p>Returns a <aclass="el"href="structcrashpad_1_1CPUContext.html"title="A context structure capable of carrying the context of any supported CPU architecture. ">CPUContext</a> object corresponding to the exception thread’s CPU context at the time of the exception. </p>
<p>The caller does not take ownership of this object, it is scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> object that it was obtained from. </p>
<p>For macOS, this will be an <aclass="el"href="mach_8h.html#EXC_x">EXC_*</a> exception type, such as <code>EXC_BAD_ACCESS</code>. <code>EXC_CRASH</code> will not appear here for exceptions processed as <code>EXC_CRASH</code> when generated from another preceding exception: the original exception code will appear instead. The exception type as it was received will appear at index 0 of <aclass="el"href="classcrashpad_1_1internal_1_1ExceptionSnapshotWin.html#a9e062aaf208e2e20ba68b407b9bfd950"title="Returns a series of operating system-specific exception codes. ">Codes()</a>.</p>
<p>For Windows, this will be an <code>EXCEPTION_*</code> exception type, such as <code>EXCEPTION_ACCESS_VIOLATION</code>. </p>
<p>Returns the address that triggered the exception. </p>
<p>This may be the address that caused a fault on data access, or it may be the instruction pointer that contained an offending instruction. For exceptions where this value cannot be determined, it will be <code>0</code>.</p>
<li>For <code>EXC_CRASH</code> exceptions generated from another preceding exception, the original exception code will appear here, not the code as received by the Mach exception handler.</li>
<li>For <code>EXC_RESOURCE</code> and <code>EXC_GUARD</code> exceptions, the high 32 bits of the exception code at index 0 will appear here.</li>
<p>In all cases on macOS, the full exception code at index 0 as it was received will appear at index 1 of <aclass="el"href="classcrashpad_1_1internal_1_1ExceptionSnapshotWin.html#a9e062aaf208e2e20ba68b407b9bfd950"title="Returns a series of operating system-specific exception codes. ">Codes()</a>.</p>
<p>On Windows, this will either be <code>0</code> if the exception is continuable, or <code>EXCEPTION_NONCONTINUABLE</code> to indicate a noncontinuable exception. </p>
<p>Returns a vector of additional memory blocks that should be included in a minidump. </p>
<dlclass="section return"><dt>Returns</dt><dd>A vector of <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> objects that will be included in the crash dump. The caller does not take ownership of these objects, they are scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> object that they were obtained from. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">process_reader</td><td>A <aclass="el"href="classcrashpad_1_1ProcessReader.html"title="Accesses information about another process, identified by a Mach task. ">ProcessReader</a> for the process that sustained the exception. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">thread_id</td><td>The thread ID in which the exception occurred. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception_pointers</td><td>The address of an <code>EXCEPTION_POINTERS</code> record in the target process, passed through from the exception handler.</td></tr>
<dlclass="section note"><dt>Note</dt><dd>If the exception was triggered by <aclass="el"href="classcrashpad_1_1CrashpadClient.html#a0b795ac1d4e01ba03e4085954249edfc"title="Requests that the handler capture a dump of a different process. ">CrashpadClient::DumpAndCrashTargetProcess()</a>, this has the side-effect of correcting the thread suspend counts for <em>process_reader</em>.</dd></dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the snapshot could be created, <code>false</code> otherwise with an appropriate message logged. </dd></dl>
<p>This value can be compared to <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html#a3c953575fadb934cd5f163560df149da"title="Returns the thread’s identifier. ">ThreadSnapshot::ThreadID()</a> to associate an <aclass="el"href="classcrashpad_1_1ExceptionSnapshot.html"title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t...">ExceptionSnapshot</a> object with the <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> that contains a snapshot of the thread that triggered the exception. </p>