Shaka Player Embedded
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
shaka::js::dom::DOMException Class Reference

#include <dom_exception.h>

Inheritance diagram for shaka::js::dom::DOMException:
shaka::BackingObject shaka::memory::Traceable

Public Member Functions

 DOMException (ExceptionCode type)
 
 DOMException (optional< std::string > message, ExceptionCode type)
 
- Public Member Functions inherited from shaka::BackingObject
 BackingObject ()
 
void Trace (memory::HeapTracer *tracer) const override
 
bool IsRootedAlive () const override
 
std::string name () const
 
virtual BackingObjectFactoryBasefactory () const =0
 
bool DerivedFrom (const std::string &base)
 
ReturnVal< JsValue > JsThis () const
 
void SetJsThis (Handle< JsObject > this_)
 
- Public Member Functions inherited from shaka::memory::Traceable
virtual ~Traceable ()
 
virtual bool IsShortLived () const
 

Static Public Member Functions

static DOMExceptionCreate (optional< std::string > message, optional< std::string > name)
 
- Static Public Member Functions inherited from shaka::BackingObject
static void * operator new[] (size_t size)=delete
 
static void operator delete[] (void *)=delete
 

Public Attributes

const std::string error_name
 
const std::string message
 
std::string stack
 
const int code
 

Additional Inherited Members

- Static Public Attributes inherited from shaka::BackingObject
static constexpr const size_t kInternalFieldCount = 2
 
- Static Public Attributes inherited from shaka::memory::Traceable
static constexpr const uint64_t kShortLiveDurationMs = 5000
 
- Protected Member Functions inherited from shaka::BackingObject
 ~BackingObject () override
 

Detailed Description

Definition at line 29 of file dom_exception.h.

Constructor & Destructor Documentation

§ DOMException() [1/2]

shaka::js::dom::DOMException::DOMException ( ExceptionCode  type)
explicit

Definition at line 149 of file dom_exception.cc.

§ DOMException() [2/2]

shaka::js::dom::DOMException::DOMException ( optional< std::string >  message,
ExceptionCode  type 
)

Definition at line 154 of file dom_exception.cc.

Member Function Documentation

§ Create()

static DOMException* shaka::js::dom::DOMException::Create ( optional< std::string >  message,
optional< std::string >  name 
)
inlinestatic

Definition at line 36 of file dom_exception.h.

Member Data Documentation

§ code

const int shaka::js::dom::DOMException::code

Definition at line 46 of file dom_exception.h.

§ error_name

const std::string shaka::js::dom::DOMException::error_name

Definition at line 42 of file dom_exception.h.

§ message

const std::string shaka::js::dom::DOMException::message

Definition at line 43 of file dom_exception.h.

§ stack

std::string shaka::js::dom::DOMException::stack

Definition at line 44 of file dom_exception.h.


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