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

#include <js_error.h>

Public Member Functions

 ~JsError ()
 
 JsError (JsError &&)
 
ReturnVal< JsValue > error () const
 

Static Public Member Functions

static std::string GetJsStack ()
 
static JsError RangeError (const std::string &message)
 
static JsError ReferenceError (const std::string &message)
 
static JsError TypeError (const std::string &message)
 
static JsError SyntaxError (const std::string &message)
 
static JsError Error (const std::string &message)
 
static JsError Rethrow (Handle< JsValue > error)
 
static JsError DOMException (ExceptionCode code)
 
static JsError DOMException (ExceptionCode code, const std::string &message)
 

Detailed Description

Contains several static methods that will be used to throw a C++ exception that will be converted to the correct JavaScript error.

Definition at line 30 of file js_error.h.

Constructor & Destructor Documentation

§ ~JsError()

shaka::js::JsError::~JsError ( )

Definition at line 134 of file js_error.cc.

§ JsError()

shaka::js::JsError::JsError ( JsError &&  )
default

Member Function Documentation

§ DOMException() [1/2]

JsError shaka::js::JsError::DOMException ( ExceptionCode  code)
static

Definition at line 115 of file js_error.cc.

§ DOMException() [2/2]

JsError shaka::js::JsError::DOMException ( ExceptionCode  code,
const std::string &  message 
)
static

Definition at line 124 of file js_error.cc.

§ Error()

JsError shaka::js::JsError::Error ( const std::string &  message)
static

Definition at line 97 of file js_error.cc.

§ error()

ReturnVal<JsValue> shaka::js::JsError::error ( ) const
inline

Definition at line 52 of file js_error.h.

§ GetJsStack()

std::string shaka::js::JsError::GetJsStack ( )
static

Definition at line 47 of file js_error.cc.

§ RangeError()

JsError shaka::js::JsError::RangeError ( const std::string &  message)
static

Definition at line 65 of file js_error.cc.

§ ReferenceError()

JsError shaka::js::JsError::ReferenceError ( const std::string &  message)
static

Definition at line 73 of file js_error.cc.

§ Rethrow()

JsError shaka::js::JsError::Rethrow ( Handle< JsValue >  error)
static

Definition at line 105 of file js_error.cc.

§ SyntaxError()

JsError shaka::js::JsError::SyntaxError ( const std::string &  message)
static

Definition at line 89 of file js_error.cc.

§ TypeError()

JsError shaka::js::JsError::TypeError ( const std::string &  message)
static

Definition at line 81 of file js_error.cc.


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