Shaka Player Embedded
Static Public Member Functions | Static Public Attributes | List of all members
shaka::impl::ThrowError< ReturnPromise > Struct Template Reference

#include <register_member.h>

Static Public Member Functions

static bool IllegalInvocation (const CallbackArguments *args, const std::string &func_name, const std::string &target_name)
 
static bool NotEnoughArgs (const CallbackArguments *args, const std::string &name, const std::string &target, size_t required, size_t given)
 
static bool CannotConvert (const CallbackArguments *args, const std::string &name, const std::string &target, const std::string &given, const std::string &required)
 
static bool General (const CallbackArguments *args, const std::string &name, const std::string &target, const std::string &message)
 
static bool Raw (const CallbackArguments *args, const js::JsError &value)
 

Static Public Attributes

static constexpr const size_t kBufferSize = 4096
 

Detailed Description

template<bool ReturnPromise>
struct shaka::impl::ThrowError< ReturnPromise >

Defines a number of methods that throw a TypeError in the current Isolate instance. These are the same error messages given from Chrome.

If |ReturnPromise| is true, this will not throw an exception and will instead set the return value of the method to a Promise that has been rejected with the exception.

Definition at line 81 of file register_member.h.

Member Function Documentation

§ CannotConvert()

template<bool ReturnPromise>
static bool shaka::impl::ThrowError< ReturnPromise >::CannotConvert ( const CallbackArguments *  args,
const std::string &  name,
const std::string &  target,
const std::string &  given,
const std::string &  required 
)
inlinestatic

Definition at line 99 of file register_member.h.

§ General()

template<bool ReturnPromise>
static bool shaka::impl::ThrowError< ReturnPromise >::General ( const CallbackArguments *  args,
const std::string &  name,
const std::string &  target,
const std::string &  message 
)
inlinestatic

Definition at line 109 of file register_member.h.

§ IllegalInvocation()

template<bool ReturnPromise>
static bool shaka::impl::ThrowError< ReturnPromise >::IllegalInvocation ( const CallbackArguments *  args,
const std::string &  func_name,
const std::string &  target_name 
)
inlinestatic

Definition at line 84 of file register_member.h.

§ NotEnoughArgs()

template<bool ReturnPromise>
static bool shaka::impl::ThrowError< ReturnPromise >::NotEnoughArgs ( const CallbackArguments *  args,
const std::string &  name,
const std::string &  target,
size_t  required,
size_t  given 
)
inlinestatic

Definition at line 90 of file register_member.h.

§ Raw()

template<bool ReturnPromise>
static bool shaka::impl::ThrowError< ReturnPromise >::Raw ( const CallbackArguments *  args,
const js::JsError value 
)
inlinestatic

Definition at line 117 of file register_member.h.

Member Data Documentation

§ kBufferSize

template<bool ReturnPromise>
constexpr const size_t shaka::impl::ThrowError< ReturnPromise >::kBufferSize = 4096
static

Definition at line 82 of file register_member.h.


The documentation for this struct was generated from the following file: