v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::wasm::WasmError Class Reference

#include <wasm-result.h>

Collaboration diagram for v8::internal::wasm::WasmError:

Public Member Functions

 WasmError ()=default
 
 WasmError (uint32_t offset, std::string message)
 
 WasmError (uint32_t offset, const char *format,...)
 
bool has_error () const
 
 operator bool () const
 
uint32_t offset () const
 
const std::string & message () const &
 
std::string && message () &&
 

Static Protected Member Functions

static std::string FormatError (const char *format, va_list args)
 

Private Attributes

uint32_t offset_ = kNoErrorOffset
 
std::string message_
 

Static Private Attributes

static constexpr uint32_t kNoErrorOffset = kMaxUInt32
 

Detailed Description

Definition at line 26 of file wasm-result.h.

Constructor & Destructor Documentation

◆ WasmError() [1/3]

v8::internal::wasm::WasmError::WasmError ( )
default

◆ WasmError() [2/3]

v8::internal::wasm::WasmError::WasmError ( uint32_t offset,
std::string message )
inline

Definition at line 30 of file wasm-result.h.

◆ WasmError() [3/3]

v8::internal::wasm::WasmError::WasmError ( uint32_t offset,
const char * format,
... )
inline

Definition at line 37 of file wasm-result.h.

Member Function Documentation

◆ FormatError()

std::string v8::internal::wasm::WasmError::FormatError ( const char * format,
va_list args )
staticprotected

Definition at line 52 of file wasm-result.cc.

◆ has_error()

bool v8::internal::wasm::WasmError::has_error ( ) const
inline

Definition at line 46 of file wasm-result.h.

Here is the caller graph for this function:

◆ message() [1/2]

std::string && v8::internal::wasm::WasmError::message ( ) &&
inline

Definition at line 55 of file wasm-result.h.

◆ message() [2/2]

const std::string & v8::internal::wasm::WasmError::message ( ) const &
inline

Definition at line 54 of file wasm-result.h.

Here is the caller graph for this function:

◆ offset()

uint32_t v8::internal::wasm::WasmError::offset ( ) const
inline

Definition at line 53 of file wasm-result.h.

◆ operator bool()

v8::internal::wasm::WasmError::operator bool ( ) const
inline

Definition at line 51 of file wasm-result.h.

Member Data Documentation

◆ kNoErrorOffset

uint32_t v8::internal::wasm::WasmError::kNoErrorOffset = kMaxUInt32
staticconstexprprivate

Definition at line 61 of file wasm-result.h.

◆ message_

std::string v8::internal::wasm::WasmError::message_
private

Definition at line 63 of file wasm-result.h.

◆ offset_

uint32_t v8::internal::wasm::WasmError::offset_ = kNoErrorOffset
private

Definition at line 62 of file wasm-result.h.


The documentation for this class was generated from the following files: